Basic
INSTR([number,]stringl ,string2)
Searches for the first occurrence of
string2
in
stringl
and returns
the position at which the match is found.
Number
specifies the position in
stringl
to begin searching for
string2
and must be an integer in the range
1
to 255. Default
=
first
character in
stringl.
INSTR
(3,
"1
2321 23",
"1
2")
A$
=
"LINCOLN": INSTR(A$,"INC")
INT(number)
Converts
number
to the largest integer that
is
less than or equal
to
number. Number
is not limited to the integer range.
PRINT INT(79.89) PRINT INT
(-12.11)
IO
C
TL
[#I
buffer, string
Advanced Statement. Sends a control data string to a device driver.
Buffer
is the number assigned to the driver when you opened
it.
The
number sign
(#)
is
not required.
String
is a string expression containing a series
of
commands called
"control data." The commands are generally 2 to
3
characters long
and may be followed by an alphanumeric argument. The commands
are separated by semicolons
(;).
String
may be a maximum of 255
bytes.
IOCTL
#I
,"PL56"
IOCTL$([#]buffeer)
Advanced Function. Returns the control data string from
a
device
driver that you have opened previously.
Buffer
is the number
assigned to the driver when you opened
it.
The number sign
(#)
is
not required.
IF IOCTL$(l)
=
lfNR1l THEN PRINT
"PRINTER NOT READY"
37