I noticed that the char object in b4a is not the same as in b4i.
for example, I use a Hebrew letter with NIKKUD and if I go through the string with x.charAt() function I get instead of letter numbers.
what I do is I convert it back to a string and then it is fine. in b4a I don't have to do that.
am I doing something wrong or is ios handling chars different than android?
Private hebrewletters As String= "אבגדהוזחטיכלמנסעפצקרשתךםןףץ"
...
Sub haslegalwords (txt As String) As Boolean 'ignore
If txt.Length = 0 Then Return False
Dim foundhebrewletters As Boolean = False
For i = 0 To txt.Length - 1
Dim c As Char = txt.CharAt(i)
If hebrewletters.Contains(c) Then
foundhebrewletters = True
Exit
End If
Next
Return foundhebrewletters
End Sub
but in ios i do this:
B4X:
Dim c As Char = txt.CharAt(i)
Dim letter As String = c
...
sorry erel it was the wrong code to demonstrate the issue (i am now at work and have not the b4i version on me) anyway thank you i will convert the char to string also in the android version.