string

  1. practicalsoft

    B4X FEED Dropbox. Da una cartella download OK e da un'altra no...

    Finalmente sono riuscito ad accedere al mio Dropbox. Ora vorrei scaricare un file dalla mia cartella di DropBox alla cartella dell'app e scrivo: B4X: Dir NomeFile as string = "pippo.txt" Dim DirDropBox as String = "\Dropbox Lavoro\Turni Telec" Dim DirDestination As String =...
  2. abass

    متد Copy و متد Copyto در سی شارپ

    ?متد Copy ایجاد یک رشته جدید با کپی گرفتن از رشته دیگر ⭐️به عنوان مثال = string s1 = "Code_Zone"; string s2 = string .Copy(s1); Console.WriteLine(s2); ?متد CopyTo کپی تعداد خاصی کاراکتر در آرایه ⭐️به عنوان مثال = string s1 = "mta"; char[] ch = { 'b', 'c', 'd'}; s1.CopyTo(0, ch, 2, 1)...
  3. practicalsoft

    B4X FEED Map of Type Reading Problem

    I have a strange behavior in my code, but I cannot see the bug. I create a TYPE and use it in an Array. Everything works fine. At the end I save all instances as Members of a MAP. B4X: Sub Process_Globals Type SpurenTyp(Name As String, Datei As String, Pan As Short,Volume As Short, Size...
  4. practicalsoft

    B4X FEED Scroll background color by words in a string.

    Hi. This code will be part of an app that I am trying to make. I am new to programming, so the corrections or any other way to do the same more efficiently will be welcomed. B4X: #Region Project Attributes #MainFormWidth: 600 #MainFormHeight: 600 #End Region Sub Process_Globals...
  5. practicalsoft

    B4X FEED Use ExecQueryAsync or ExecQuery2 with B4XFloatTextField1_TextChanged

    I use the below code with ExecQueryAsync and a search using B4XFloatTextField1_TextChanged. Since the xCLV data is updated frequently and every character entered, is it more appropriate to use ExecQuery/ExecQuery2 as opposed to ExecQueryAsync. B4X: Sub B4XFloatTextField1_TextChanged (Old As...
  6. practicalsoft

    B4X FEED [SOLVED???] java.lang.NumberFormatException: empty String

    Hi All, I encountered a weird error and can't solve it, where is the number? I just want to ask whether in the map there is a key, isn't it? I renamed the variable name dbinimap, the key ("beepath"), may this is the reason of error, but not. If I delete the line if ... containskey, and read the...
  7. practicalsoft

    B4X FEED java.lang.NumberFormatException: empty String

    Hi All, I encountered a weird error and can't solve it, where is the number? I just want to ask whether in the map there is a key, isn't it? I renamed the variable name dbinimap, the key ("beepath"), may this is the reason of error, but not. If I delete the line if ... containskey, and read the...
  8. practicalsoft

    B4X FEED jMQTTBrokerExtended

    This library is an extended version of jMQTTBroker2. It includes additional features (events, authentication, permissions, log backup, internal publishing) and fixes stability issues. You can implement different levels of authentication: - None: all accesses are anonymous. - Generic: all...
  9. practicalsoft

    B4X FEED Prasing JSON Error

    Hello! I am having trouble in parsing this particular JSON code. Please let me know what, and where specifically is the problem. Below is my code B4X: Sub Class_Globals Public csrf As String End Sub 'Initializes the object. You can add parameters to this method if needed. Public Sub...
  10. practicalsoft

    B4X FEED Invalid binary file on app store connect

    Hello, it's been a while since i don't use B4i, but recently i tried to upload a new app and i get a message on my phone saying invalid binary file. My app compiles fine in release mode and the provision file is detected as a store mobileprovision. i have this in the code for GPS and TouchID...
  11. practicalsoft

    B4X FEED [B4A] PrefDialog.PrefItems.Set

    Hello, Can someone explain to me what is wrong with the performance, Look: PrefDialog.PrefItems.Set(0, newItem) ? ... PrefDialog.Initialize(Parent, "Dialog", 300dip, 400dip) PrefDialog.LoadFromJson(File.ReadString(File.DirAssets, "template.json")) ... Dim oldItem As String =...
  12. practicalsoft

    B4X FEED How to cast an object to string?

    The MAP.GET() returns my string as an object. Now I want to trim the string, but how to cast an object to string? B4X: 'this is easy: Dim word as String = MyPropery.Get("Name") word = word.Trim 'but how to cast in one line? 'this will not work: Dim oneLine as String =...
  13. practicalsoft

    B4X FEED Writing Excel file via SMB sometimes leaves a corrupt file

    Dear all, if encounter a problem with my app that I am not able to solve. The function is as follows: 1. Download an Excel file via SMB 2. Modify the file on the Tablet (adding cells and pages) 3. Then uploading the file via SMB to the server again. Before 1. The data to add is collected on...
  14. practicalsoft

    B4X FEED [B4X] Regex - remove whitespaces

    Hey, i found this code on stackoverflow to remove whitespaces: B4X: st.replaceAll("\\s","") Removing whitespace from strings in Java I have a string like this: mysz = "name=john age=13 year=2001"; I want to remove the whitespaces in the string. I tried trim() but this removes only...
  15. practicalsoft

    B4X FEED Regex - remove whitespaces

    Hey, i found this code on stackoverflow to remove whitespaces: B4X: st.replaceAll("\\s","") Removing whitespace from strings in Java I have a string like this: mysz = "name=john age=13 year=2001"; I want to remove the whitespaces in the string. I tried trim() but this removes only...
  16. practicalsoft

    B4X FEED wait for on Server Handle

    Hi all. I need to make a GET request through a handler and display the result on the screen. I tried to follow @Erel tutorial on how to use wait on a handler but I was not successful. here's the code. B4X: Sub Handle(req As ServletRequest, resp As ServletResponse) Wait For...
  17. practicalsoft

    B4X FEED [XUI] SD Base64 - Encode / Decode

    Today I was looking for a method for encoding and decoding in Base64. There are many libraries including the well-known StringUtils. But the decoding signaled me an error but it was not possible to understand exactly what the error was So I created for B4J a class that using inline Java code...
  18. practicalsoft

    B4X FEED [B4X] Custom GoogleMaps

    This is an example of how you can customize a Map. Through the B4XCanvas functions it is possible to create the map with photos, text, etc. The classes used are MapScale + GoogleMapsExtra (https://www.b4x.com/android/forum/threads/class-googlemapsextra.56871/) The following code is an example...
  19. practicalsoft

    B4X FEED B4X runtime permission error

    I used an example from xchart from Klaus to make a snapshot of a graph. I used this code B4X: Sub savesnapshot Dim rp As RuntimePermissions rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE) Wait For Activity_PermissionResult (Permission As String, Result As Boolean) If...
  20. practicalsoft

    B4X FEED B4xTable Search Fails If Text Field is NULL

    Hi, I have a text comments field in my sqLite database tables. The contents of the field are optional and so the fields are NULL unless they have at least a string of zero length in them i.e. "" If you wish to use the search feature of b4xTables and you make the comments field searchable and...
عقب
بالا