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 #144 background imageLoading...
Page #144 background image
Chapter
10
I
BASIC Keywords
DIM
Statement
DIM
array(dimenswn)[,array(dimnsion),
. .
.I
Sets aside storage for arrays with the dimensions you specify.
Array
is
the variable name of the array.
It
may be a string, inte-
ger, single precision, or double precision variable.
Dimension
is
1
or more integer numbers separated by commas that
define the dimensions of the array. The lowest element in
a
dimen-
sion
is
always zero, unless an OPTION BASE
1
statement
is
executed.
When you execute the DIM statement, BASIC reserves space in
memory for each element of the array. Each element is initially
set to zero for numeric arrays or null for string arrays.
If
you
do
not dimension an array, the maximum number of ele-
ments
it
can have
is
11
(0-10).
Remember that arrays are completely independent of variables
that have the same name; that
is
MN and MNO are unique.
For more information on arrays, see Chapter 6.
Examples
DIM
AR(100)
sets up
a
1-dimensional array ARO, containing 101 elements:
AR(0), AR(l), AR(2),
...,
through AR(100).
DIM
Ll%(8,25)
sets up
a
2-dimensional array Ll%(), containing
9
x 26 integer
elements.
142

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