INDEX returns an unscaled REAL FIXED BINARY value indicating the starting position within x of a substring identical to y. You can also specify the location within x where processing begins.
|
If y does not occur in x, or if either x or y have zero length, the value zero is returned.
If n is less than 1 or if n is greater than 1 + length(x), the STRINGRANGE condition will be raised, and the result will be 0.
The BIFPREC compiler option determines the precision of the result returned.