62
•
S tring variable
Kinds of string variable s :
Format :
•
O thers
Line numbers :
File nam e :
Cursor position in a CURSOR statem en t :
Point p osition in a SET or RESET statement :
Clock string T I $ :
Levels of FOR . . . NEXT loops:
Levels o f GOSUB loops:
Levels of function definition routines with D E F FN :
Port address and data in INP or OUT statemen t :
Value o f rr :
String variable
One-dimension al string variable
Two-dimensional string variable
A string variable is expressed by a name following $ . Requirements
for string variable name are the same as those for numeric variable.
Example :
A $ , ST$ and Nl $ are normal string variables.
NAM E l $ and NAM E 2 $ are processed as the same
string variable.
T I $ , CHR$ (
D I M S$ ( 3 , 3) defines a two-dimensional string array
including 1 6 elements S$ ( 0, 0) through S $ ( 3 , 3 ) .
1 - 6 5 5 3 5
Significant digits i n a file name specified i n LOAD, VERIFY or
SAVE commands are a m ax imum of 1 6 digits.
}
X = 0 - 7 9
80 characters/line m ode
y
}
= 0 - 24
X = 0 - 3 9
40 characters/line m ode
y
= 0 - 24
X = 0 - 3 1 9
y
= 0 - 1 99
6-digit decimal string
The 1 st 2 characters = 00 - 23 (hour digits)
The 2nd 2 characters = 00 - 5 9 ( m inute digits)
The 3rd 2 characters = 00 - 59 (second digits)
I S
M ax imum of
Maximum of 1 5
Maximum of 6
Port address = 0 - 2 5 5
D ata = 8 bit data or decimal numb ers ( 0 - 2 5 5 )
rr = 3 . 1 4 1 5 92 6 5 3 5 8 9 7 93
), etc. are special string variables.