Function type:
INTEGER
Looks for the specified pattern in the given string. It returns the first occurrence, starting from the offset position.
●
●
If the pattern is not found in the string, the function returns -1.
stm_index(’AB@CB’,0,’B’,status) = 1
stm_index(’AB@CB’,3,’B’,status) = 4
stm_index(’AB@CB’,0,’XY’,status) = -1