xcall NFIND, string, stpos, endpos, char, pos
NFIND is similar to the BASIC INSTR() function, except with more sophistication.
Parameters
string (String) [in]
string to be searched
stpos (Num) [in]
starting position (first byte is number 1)
endpos (Num) [in]
ending position to search in the string. Must be greater than or equal to stpos or the result will always be zero. If larger than the length of the string, it will be treated as equal to the length.
char (String, 1) [in]
the character to search for, with two special wildcards: "%" matches any non-space in the substring, and "/" matches non-numeric, non-alphabetic character.
pos (Num) [out]
Returns the position of the matched character, or zero if there is no match within the specified substring.
See Also