EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #187 background imageLoading...
Page #187 background image
Chapter
10
I
BASIC
Keywords
INSTR
Function
Searches for the
first
occurrence of
string2
in
stringl
and re-
turns the position
at
which the match
is
found.
Number
specifies the position in
stringl
to begin searching for
string2. Number
must be an integer in the range
1
to
255.
If you
omit
number,
INSTR
starts
searching at the
first
character in
stringl
.
If
BASIC finds
string2
in
stringl,
it returns the starting position
of the match; otherwise, it returns zero.
If
the entire substring
is not contained in the search string, BASIC returns a zero.
Examples
Suppose A$
=
“LINCOLN”
Statement BASIC returns
INSTR(A$, “INC”)
2
INSTR(A$,
“12”)
0
INSTR(A$, “LINCOLNABRAHAM”)
0
For a slightly different use of INSTR, try:
10
X=INSTR
(3, “1232123”, “12”)
20
PRINT
X
which prints
5,
because the search started at the third
character.
185

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals