String

String functions

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’). If there is no match, INSTR returns 0


See examples

TRANSLATE

SmallBASIC syntax groups: 


String function TRANSLATE


10
20  TRANSLATE (source, what [, with])
30
Translates all occurrences of the string ‘what’ found in source with the string ‘with’ and returns the new string.


See examples

RINSTR

SmallBASIC syntax groups: 


String function RINSTR


10
20  RINSTR ([start,] s1, s2)
30
Returns the position of the last occurrence of the string s2 into string s1 (starting from the position ‘start’).


See examples

Pages

Subscribe to RSS - String