You are here

INSTR

SmallBASIC syntax groups: 


String function INSTR


10
20  INSTR ([start,] s1, s2)
30
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 smallbasic@gmail.com. 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