RETURNS THE POSITION IN S1 OF THE FIRST CHARACTER OF S2 IF THE STRING S1 CONTAINS THE STRING S2
ACTION
The function INSTR(S1,S2) returns the position in S1 of the first character of S2 if the string S1 contains the string S2, and otherwise returns 0.
SYNTAX:
Result=INSTR(S1,S2)
USE ERROR EXAMPLE
dim a$,b$
a$="ABCDEFGHIJ"
b$="DE"
print instr(a$,b$)
print 4
INSTR()
INSTR(S1,S2)
SEE ALSO
INSERT$()
LEFT$()
LEN()
LOWER$()
LTRIM$()
MID$()
RIGHT$()
RTRIM$()
STR$()
STRING$()
TRIM$()
UPPER$()