red30 Well-Known Member Licensed User Longtime User Mar 7, 2019 #1 Russian and English contain the same letters. Can I identify, in the line only English letters? Or vice versa: did the string contain Russian letters? But in this line there will be numbers. For example: English only: "123English" Only Russians: "123Русский" Both Russian and English: "456EnglishРусский"
Russian and English contain the same letters. Can I identify, in the line only English letters? Or vice versa: did the string contain Russian letters? But in this line there will be numbers. For example: English only: "123English" Only Russians: "123Русский" Both Russian and English: "456EnglishРусский"
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2019 #2 You can check for code points smaller than 128: Code: Copy For i = o To s.Length - 1 If Asc(s.CharAt(i)) >= 128 Then Return True Next Return False Upvote 0
You can check for code points smaller than 128: Code: Copy For i = o To s.Length - 1 If Asc(s.CharAt(i)) >= 128 Then Return True Next Return False