Note that IsSameText is not about emulating StrComp! StrComp is an animal of sorting, and thus has to deal with the irregularities of human language orthography and lexical sorting standards. For example (InStr can do this trick, too):
StrComp("Masse", "Maße", vbTextCompare) --> 0 (equal)
InStr(1, "Masse", "Maße", vbTextCompare) --> 1
However, check out this one:
InStr(1, "as", "aß", vbTextCompare) --> 0 (not found: 'aß'='ass' is not in 'as')
InStr(1, "aß", "as", vbTextCompare) --> 1 (found as pos 1: 'as' is in 'aß'='ass')
So, in textual comparison mode, "ß" is first transliterated to "ss", and then the search begins. The same holds for all characters with an alternative digraphemic transliteration:
"ß" = "SS","Ss","sS","ss"
"Œ","œ" = "OE","Oe","oE","oe"
"Æ","æ" = "AE","Ae","aE","ae"
"Þ","þ" = "TH","Th","tH","th"
|
Making notes on StrComp, here's a last one: VB5's StrComp sorts the number characters "1", "2", "3" (Ascii 49,50,51) *before* their superscript counterparts, whereas VB6 does not make any difference:
VB5 StrComp: 1(49) < ¹(185), 2(50) < ²(178), 3(51) < ³(179)
VB6 StrComp: 1(49) = ¹(185), 2(50) = ²(178), 3(51) = ³(179)
|