I understand that InStr is case senstive. Is there an alternate function that is case insensitive?
case insensitive InStr
Collapse
X
-
Actually, according to the documentation (VB6) you can use Instr and simply tell it not to be case-sensitive. This might be more efficient than converting the text to upper- or lower-case all the time.Originally posted by jdwyer05Thanks, lcase worked
Originally posted by VB documentationInStr([start, ]string1, string2[, compare])
vbBinaryCompare 0 Performs a binary comparison.
vbTextCompare 1 Performs a textual comparison
...
In English-U.S., binary comparisons are case sensitive; text comparisons are not.Comment
-
learned again something todayOriginally posted by Killer42Actually, according to the documentation (VB6) you can use Instr and simply tell it not to be case-sensitive. This might be more efficient than converting the text to upper- or lower-case all the time.Comment
Comment