InStr
The InStr instruction is used to find the location of a string within a string.
Syntax
Variable = InStr ( start, source, pattern )
Remarks
This function returns the integer position of the pattern parameter. If the pattern is not found, the function returns 0.
The source is the string in which to look for the pattern. Note that in most cases the pattern will be a literal string and, therefore, must be enclosed in quotes and preceded by a $. The start parameter is the integer position of where to start in the source (1 = first character). All character comparisons will not be case-sensitive.