Overview | Statement List | Example
FNDSTR('target string','search string',pos)
Returns the start position of a search string within a target string. The returned value is an integer which represents the start position of the first occurrence of the search string. The search is made from the position specified by pos to the end of the target string or until the first occurrence of the search string is found. If the search string is not found, a 0 is returned.
Parameter |
Description |
'target string' |
The literal string or string variable name of a string which is searched. |
'search string' |
The set of character(s) which is searched for in the target string. |
pos |
Position in the target string where the search begins. Spaces (blanks) are counted in arriving at the search location. The pos value must be an integer greater than zero. |