Hi, Guys
I have a problem with string comparison, the line
IF fcmToken = webFcmToken then always fails (see code below).
I have viewed tokens with in debug an they appear identical. Also tried .trim and even .toupper but still failed the comparison.
Also tried fcmToken.compare(webFcmToken) and...
Hello,
For security, Is it necessary, and if yes what is the best method to do for:
Hidding particulary parameters or constant or var into the code,
like :
Public PhaRcs As String = "Mypassword" ' Password
Public WebSite As String = "https://www.MyWebSite.com" ' Url
Public...
i have a string : msg = "%this is test message%"
I am changing special character "%" = "%25"
msg.Replace("%","%25")
Its showing error ::
Error occurred on line: 49 (Main)
java.lang.ClassCastException: java.lang.String cannot be cast to anywheresoftware.b4a.shell.Shell$RemoteObject
at...
I'm manually building in code, some JSON files, but have a hit a problem where I need to ensure that characters like " ' [ & etc are encoded, as if I don't, the recipient can't parse the resulting file. Is there a function somewhere that will allow me to convert a text string to a JSON friendly...
Hello,
Can someone please send an example of how to get item from string with items?
(I am using json with OkHttpUtils2)
The string setting is :
Dim name As List = root.Get("name")
For Each colname As String In name
Next
(how to get for example item number 3 that equals to...
Hello!
I'm new to this forum (and generally in B4A and Android programming) and this is my first post.
I have a problem with the app I'm developing.
This is the code causing the crash, but I don't know how to fix it:
Private DriveStartHour As Int = -1
Private DriveStartMin As Int = -1...
Hello,
Is there an easy way to check if only emojis in a string?
I would like to check this to highlight it by changing the text size, like Instagram where you can see the emojis in large size when sending only one emoji or two.
Greetings
hi,
I need to search for a word in a string.
I tried InStr, but its not exist.
Does someone knows how can I search for some
String in other string (like inStr on VB)?
Thanks.
I looked in the manual under strings, and did a search but could not find this - Is there a maximum length for a string in B4A? If so what is it? Same as for B4i and B4j?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.