Hi,
I have the following sample code:
What the hell am I missing here...?....
Regards,
Kepler
I have the following sample code:
B4X:
Dim lang As String = "english"
Dim code As String
Dim language As String = lang.ToLowerCase
If(Regex.IsMatch("portuguese",language) = True) Then code = "PT"
If(Regex.IsMatch("english",language) = True) Then code = "EN":Log("EN"):Log(code) 'Prints EN - correct and PT - WRONG
Log(code) 'Prints PT - WRONG
Log(Regex.IsMatch("english",language)) 'Prints True!!! - Correct
What the hell am I missing here...?....
Regards,
Kepler