| The
POS( ) function scans the string$ to
determine where a portion of it will satisfy the
relationship with the pattern string. The function
returns an integer reporting the starting position in string$
where the relationship is satisfied, or 0 (zero) if no
position satisfies the relationship. Use the step value to set
the logical increment for the next position to be
checked. The default is to move one (1) position at a
time. If the value of the increment is negative, then the
string is scanned from back to front.
Indicate the instance or
occurrence for which you want to obtain the POS(
) value. If this value is omitted, the default
is 1 (the first instance found). If the value is 0, the POS(
) function returns the total number of matches
found.
|