T taylorw Active Member Licensed User Jun 13, 2017 #1 B4A Have syntax like sqlite statement "Like"?Use for compare two text.
R ronell Well-Known Member Licensed User Longtime User Jun 13, 2017 #2 B4X: Dim text1, text2 As String text1 = "a" text2 = "b" Log(text1.CompareTo(text2)) try those .. Upvote 0
T taylorw Active Member Licensed User Jun 13, 2017 #3 Thanks @ronell, this is helpful. Best regards. Upvote 0
tigrot Well-Known Member Licensed User Longtime User Jun 13, 2017 #4 I personally use string.contains. I you want to check a similar like "%MAURO%" you can use if mystring.contains("MAURO") Upvote 0
I personally use string.contains. I you want to check a similar like "%MAURO%" you can use if mystring.contains("MAURO")
T taylorw Active Member Licensed User Jun 13, 2017 #5 Thank you also @tigrot, i will try it. Upvote 0
Star-Dust Expert Licensed User Longtime User Jun 13, 2017 #6 tigrot said: I personally use string.contains. I you want to check a similar like "%MAURO%" you can use if mystring.contains("MAURO") Click to expand... For like "%MAURO%" you can use if mystring.IndexOf("MAURO")>-1 then and For Don't like "%MAURO%" you can use if mystring.IndexOf("MAURO")=-1 then Upvote 0
tigrot said: I personally use string.contains. I you want to check a similar like "%MAURO%" you can use if mystring.contains("MAURO") Click to expand... For like "%MAURO%" you can use if mystring.IndexOf("MAURO")>-1 then and For Don't like "%MAURO%" you can use if mystring.IndexOf("MAURO")=-1 then
tigrot Well-Known Member Licensed User Longtime User Jun 13, 2017 #7 I always like MAURO so if mystring.indexOf("MAURO") is ALWAYS >-1! Isn't it??!! Upvote 0
tigrot Well-Known Member Licensed User Longtime User Jun 13, 2017 #8 Ps. my name is MAURO... Upvote 0
Star-Dust Expert Licensed User Longtime User Jun 13, 2017 #9 tigrot said: Ps. my name is MAURO... Click to expand... I known Upvote 0