
7-6
Section
Details of BASIC Commands
150
def int/lng/sng/dbl/str
Syntax:
DEF
(
INT
|
LNG
|
SNG
|
DBL
|
STR
) <letter> [- <letter>] {, <letter> [- <letter>]}
Description:
Statement. Defines the type of variables beginning with the specified letters..
Remarks:
The variables can be declared to be of type short integer (
INT
), long integer (LNG), single-
precision floating point (
SNG
), double-precision floating point (
DBL
) or string (
STR
).
Variables beginning with the letters specified, or in the range of letters specified will be assigned
to be of the declared type.
If the type is declared using the type definition characters (%, &, !, # or $) then this will take
precedence over the types declared using
DEF INT
/
LNG
/
SNG
/
DBL
/
STR
.
If no type declarators are used all numeric variables are assumed to be single-precision floating
point.
When the OPTION LENGTH statement is used in a program, a variable name defined by a DEF
statement cannot be used before the DEF statement.
Examples:
> 10 DEFINT A
> 20 A = 1.2
> 30 PRINT A
> RUN
1
See also:
del
Syntax:
DEL
((<line number> | . ) [- [(<line number> | . )]]
Description:
Command. Deletes the specified program lines.
<line number> is any valid line in the BASIC program. Valid range: [1…65535].
Remarks:
Note:
1.
A period (.) can be used instead of the current line number.
2.
The first number in any given range must be less than the second number of that
range. If this is not true then an “ILLEGAL FUNCTION CALL” error (code B005)
will result.
Examples:
DEL 100-200
deletes a range of lines from 100 to 200 inclusive.
DEL 100-
deletes a range of lines from 100 to the end of the program.
DEL -600
deletes a range of lines from the beginning of the program to line 600
See also:
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...