Defint; Defreal - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

DEFINT
DE FIN T <list of: <letter range>
10 DEFINT
n
20 number=123.456
30 PRINT number
run
123
COMMAND: Sets the DE Fault for a variable to type IN T eger. When a variable is
encountered without an explicit type marker
(!
%
$),
the default type is assumed.
This command sets the default for variables with the specified first letter(s) to type
INTeger. There may be a list of first letters such as:
DEFINT a,b,c
.... or there may be an inclusive range of first letters such as:
DEFINT a-z
Associated keywords: DE F REA L, DE F S T R
DEFREAL
D E F REA L <list of: <letter range>
DEFREAL x,a-f
COMMAND: Sets the DE Fault for a variable to type REA
L.
When a variable is
encountered without an explicit type marker
(!
%
$),
the default type is assumed.
This command sets the default for variables with the specified first letter(s) to type
REA L. There may be a list of first letters such as:
DEFREAL a,b,c
.... or there may be an inclusiverange of first letters such as:
DEFREAL a-z
Associated keywords: DE FIN T, D E F S T R
Chapter 3 Page 14
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents