QBasic 1.1: INSTR Function

Syntax

INSTR([start%,]stringexpression1$,stringexpression2$)

Description / Parameter(s)

start% Sets the character position where the search begins. If start% is omitted, INSTR starts at position 1.
stringexpression1$ The string to search.
stringexpression2$ The string to look for.

Example

a$ = "Microsoft QBasic" PRINT "String position ="; INSTR(1, a$, "QBasic")