Another approach is to use RegExpr_FindPatternInText() from regexpr.fp that
comes with CVI 6.0. It takes an argument (the 2nd one) that lets you specify
case-insensitivity, and the string you're searching for can be a regular
expression, for example:
x = RegExpr_FindPatternInText ("XYZ", 0, "abcxyz", -1, RegExpr_SearchForwards,
RegExpr_MatchSmallestNumChars, &mat, &pos,
&len);
"pos" returns the 0-based position of the match (i.e. 3 in this example) or -1
if no match was found.
Regular expressions are generally more flexible for text searching. If your
program controls the content of the sub-strings then they're a good solution.
However, if the sub-strings that you're searching for are supplied by another
source that may include rando
m meta-characters like *, [ or \ in them, then
uppercasing the strings as Chris suggested is a better way to go.