en:docs:dos:cmd:basic:instr

Table of Contents

INSTR

Syntax

N  = INSTR( A$, B$ )
N  = INSTR( X, A$, B$ )

Parameter

X is a number, [1,MAXLEN] A$ is a string, LEN >= 0 B$ is a string, LEN >= 0

Description

The position at which B$ occurs in A$, beginning at position 1.

The position at which B$ occurs in A$, beginning at position X.