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 #220 background imageLoading...
Page #220 background image
Chapter
10
I
BASIC
Ke.ywords
MID$
Statement
MID$(oldstring,start[
,length])
=
newstring
Replaces a portion
of
oldstring
with
newstring.
Oldstring
is the variable name
of
the string you want
to
change.
Start
is a number specifying the position
of
the first character
you want
to
change.
Length
is a number specifying the number
of
characters you
want
to
replace.
Newstring
is the string
to
replace a portion
of
oldstring.
The length
of
the resultant string is always the same as the
original string. If
newstring
is shorter than
length,
the entire re-
placement string is used.
Examples:
10
FIB
=
"LINCOLN"
20 MID$CAB,3,4)
=
"12345":
PRINT
AB
prints LI1234N.
Replace Line 20 with:
20
MIDB<FIB,S)
=
"01":
PRINT
A$
and BASIC prints LINC01N
218

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