Vector Basic Interpreter Basic 80 Reference Manual - page 122
of
190
Extended,
Disk
Searches
for the
first
occurrence
of
string
Y$
in
X$
and
returns
the
position
at which
the
match
is found.
Optional
offset
I
sets
the
position
for starting
the search.
I must
be in
therange
0 to 255.
If I>LEN(X$)
or
if
X$
is
null
or if Y$ cannot
be
found,
INSTR
returns
O.
If Y$ is null,
INSTR
returns
I or
1.
X$ and
Y$
may
be
string
variables,
string
expressions
or
string
literals.
10 X$ • "ABCDEB"
20 Y$ =-
"B"
30 PRINT
INSTR(X$,Y$);INSTR(4,X$,Y$)
RUN
2
6
Ok
SK, Extended,
Disk
Returns
the
largest
integer
<=X.
INT (99.89)
99
Ok
INT(-12.11)
-13
Ok
See the FIX
and CINT
functions
which
also
return
integer
values.