Instr (string1$, string2$, offset)  

Definition:

Finds the position of an occurance of one string within another.

Parameter Description:


string1$ = the string you wish to search
string2$ = the string to find
offset = valid integer starting position to being search (optional)

Command Description:

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.

Example:

name$="Shane R. Monroe"
location = Instr( name$,"R.",1)
Print "Your string contains 'R.' at position number " + location + "!"

Index