string1$ = the string you wish to search
string2$ = the string to find offset = valid integer starting position to being search (optional) |
This command will allow you to search for an occurance of a string within another string. The command returns the location (number of characters from the left) of the string you are looking for. Command returns a Zero if no matches are found. |
name$="Shane R. Monroe"
location = Instr( name$,"R.",1) Print "Your string contains 'R.' at position number " + location + "!" |