Did I forget something about comparing case in Xojo?
ch = “A”
Yet here and Here are hit in the debugger and output in the log….
wassamaata me?
String comparison in Xojo is case insensitive, and always has been.
1 Like
Does that apply to IndexOf when searching a string for an instance of a character?
Yes, as
IndexOf("A", ComparisonOptions.CaseSensitive)
1 Like
I’ve been thrown by that too, and I use String.Compare for case sensitive comparisons.
Var n As Integer
n = a.Compare(b, ComparisonOptions.CaseSensitive)
