SmallBASIC syntax groups: 

String function INSTR

20  INSTR ([start,] s1, s2)
Returns the position of the first occurrence of the string s2 into string s1 (starting from the position ‘start’).

See examples

If there is insufficient information on this page and you wish learn more about INSTR, please send an email to You can help to improve information about INSTR by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

If there is no match, INSTR returns 0