
15-62
STRPOS (Function) [Conforms to SLIM]
Function
Obtains the position of a character string.
Format
STRPOS (<Character string 1>, <Character string 2>)
Explanation
This statement obtains the position of <Character string 2> in <Character string
1>.
For the order, count 1, 2, … from the left.
If the string is not found, 0 is returned.
Related Terms
Example
DIM li1 As Integer
li1 = STRPOS(“abcdefg”, “bc”)
'Assigns position (2) of “bc” in “abcdefg” to li1.
Comentarios a estos manuales