Return to Statement


Position of Characters in a String Example

This example demonstrates the use of the FNDSTR function to find where the characters "83" are in a string. Only an occurrence after the seventh character is searched for.

   STRING/STR(15)
STR='54738378332'
ANS=FNDSTR(STR,'83',7)

Although the first occurrence of the search string, 83, is at position 5, it was ignored because 7 was specified as the start search position.