Tandy 1000 Basic Reference Manual page 138

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Keywords
DE FDBL/INT/SNG/STR
Statement
DEFDBL letter[,letter,
...I
DEFINT
letter[,letter,.
. .I
DEFSNG letter[,letter,
...I
DEFSTR
letter[,letter,
... 1
Defines any variables beginning with
letteris)
as: double preci-
sion (DBL), integer (INT), single precision (SNG), or string
(STR).
You may specify
letter
as a range of letters. For example, A-J.
Remember, a type declaration tag always takes precedence over
a
DEF
statement.
Examples
D E F D B L L - P
classifies all variables beginning with the letters
L
through
P
as
double precision variables.
D E F S T R
A
classifies all variables beginning with the letter A as string
variables.
D E F I N T I - N ,
W,Z
classifies all variables beginning with the letters I through
N,
W, and Z as integer variables.
D E F S N G
I ,
Q - T
classifies all variables beginning with the letters
I
or Q through
T
as single precision variables.
136

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents