Arrays; Subscripted Variables - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

The type of data is declared by the DEF statement or by
attaching a suffix at the end of the variable as a type
specification symbol.
Example
Symbol
Type of variable
A?, INTEGER?
%
Numerics
Integer
RO! REAL!
!
Single-precision
real number
B5#, DBL#
#
Double-precision
real number
LITERAL$
(String) $
Characters
When a variable has no type specification symbol or is
not declared by the DEF statement,
a single-precision
real number is assumed,
numeric variable name is single-precision.)
(The default type for a
3. Arrays
(Subscripted variables)
Arrays are declared by the DIM statement before they
are used.
dimension or number of elements.
However, the whole
length should fit in the total storage capacity.
There is no limitation on an array's
An array which consists of 10 or fewer members may be
used even if not declared by the DIM statement. (The
declaration is assumed to have been done when the array
is used for the first time.)
3-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents