FutureBasic Logo

<<    Index    >> FutureBasic 5

instr   function

foundPosition = instr(startPos

This function searches for the first occurrence of searchPascalString or searchContainer$$ within targetPascalString or targetContainer$$, starting at character position startPos . (If startPos is less than 1, it's treated as 1.) If a match is found, the function returns the character position (1..255) within targetPascalString or targetContainer$$ where the match begins. If no match is found, the function returns zero. The string search is case-sensitive.

instr always returns zero in these cases:
See Also:
indexf; mid$; left$; right$