SEARCH returns an unscaled REAL FIXED BINARY value specifying the first position in one string at which any character, bit, graphic or widechar of another string appears. It also allows you to specify the location at which to start searching.
|
If either x or y are the null string, the result is zero.
If y does not occur in x, the result is zero.
Unless 1 <= n <= LENGTH(x)+1, STRINGRANGE condition, if enabled, is raised. Its implicit action and normal return give a result of zero.
The BIFPREC compiler option determines the precision of the result returned.
SEARCH can be used to find delimiters in a string of numbers.