AKD BASIC User Guide | 5 AKD BASIC Functions
5.11 INSTR()
General Information
Type Function
Description Returns the starting location of a substring within a string.
Syntax
result = INSTR( [n], x$, y$ )
x$ is the string
y$ is the substring
n optionally sets the start of the search
Instructions
n must be in the range 1 to 255
INSTR() returns 0 if:
n > LEN(x$)
y$ cannot be found in x$
If y$ iis null (empty, ""), INSTR() returns n
Related Topics
LEN()
Kollmorgenâ„¢ | March 30, 2012 74