To search for the first occurrence of string y$ in x$, and return the position at which the string is found.
Optional offset n sets the position for starting the search. The default value for n is 1. If n equals zero, the error message "Illegal argument in line number" is returned. n must be within the range of 1 to 255. If n is out of this range, an "Illegal Function Call" error is returned.
INSTR returns 0 if:
n > LEN(x$)
y$cannot be found
If y$is null, INSTR returns n.
x$and y$may be string variables, string expressions, or string literals.
The interpreter searches the string "ABCDFBXYZ" and finds the first occurrence of the character B at position 2 in the string. It then starts another search at position 4 (D) and finds the second match at position 6 (B). The last three characters are ignored, since all conditions set out in line 30 were satisfied.
All Frank Sinatra recordings, All Beatles albums, All solo albums from John Lennon, Paul McCartney, George Harrison and Ringo Starr, All Beatles songs, List of Platinum selling albums, Database with hits from 1950 to 1999.
Sought after DLL files, Nutworks magazine (retro), Worldwide ISO and TLD codes, File extensions database, The Hackers dictionary, Free software for the Atari, Amiga and Macintosh, Nokia smartphone, PocketPC, List of all BASIC programming language commands, List of all DOS commands, Free Advanced Bash-Scripting Guide (Linux-Unix)