EasyManuals Logo

IBM 5100 Basic Reference Manual

IBM 5100
187 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 #71 background image
(
(
(
DIM
DI
M array-name (rows [,columnsl )
[,array-name
(rows
[,columnsl
)J.
•.
The
DIM
statment allows you
to
explicity specify
the
size
of
arrays. The syntax
of
the
DIM
statement
is
as
shown:
DIM
array-name (rows
[,columnsl)
[,array-name
(rows
['columnsl)J.
••
where:
array-name
is
an arithmetic
or
character array
to
be
dimensioned.
rows, columns are nonzero, unsigned integer constants specifying
the
dimensions
of
the
array. One-dimensional arrays require only
the
rows entry. Two-dimen-
sional arrays require both rows and columns entries.
A one-dimensional array whose name
is
specified
in
a
DIM
statement
is
defined as
having
the
number
of
elements represented by the rows entry. A two-dimensional
array whose name
is
specified
in
a
DIM
statement
is
defined as having
the
number
of
rows and
the
number
of
columns entered
in
the
statement.
The initial value
of
each arithmetic array element
is
zero; each character array element
is
18 blank characters.
Notes
About
DIM
An
array name cannot appear
in
a
DIM
statement
if
it has been previously
defined, either implicitly
or
explicitly
in
a
USE
statement
or
a prior
DIM
statement.
An arithmetic
or
character array
of
one
or
two dimensions can be defined
in
a
DIM
statement.
The maximum permissible size
of
each dimension
in
an array
is
255.
67

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5100 and is the answer not in the manual?

IBM 5100 Specifications

General IconGeneral
Release Year1975
RAM16 KB - 64 KB
Storage204 KB tape drive
Display5-inch CRT
Operating SystemAPL/BASIC
ProcessorIBM PALM (1.9 MHz)

Related product manuals