STRPOS (Function)


Obtains the position of a character string.


STRPOS (<Character string 1>, <Character string 2>)


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.


DIM li1 As Integer
li1 = STRPOS("abcdefg", "bc")
'Assigns position (2) of "bc" in "abcdefg" to li1.


Top