EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 282

Radio Shack TRS-80 Model 4
418 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ROW
I ROW(number)
Function I
Returns the row position of the cursor.
Number is a dummy argument.
ROW finds the row
in
which the cursor
is
currently located and
returns that row number. The 24 rows are numbered 0-23.
Examples
)(
=
ROW(Y)
assigns the cursor's current row number to
X.
Sample Program
When you type a key, the program below prints: the keyboard
character, the cursor's row number and column number, and the
character's ASCII code.
100
CLS
110
R=0:
C=0
120
PRINT@(21
,32),
"ROW",
"COLUMN"
130
X$
=
INPUT$(1)
1£10
PRINT
@(R,C),
)($;
150
C=POS(0):
R=ROW(0)
180
PRINT
@
(22,32)
,R,C;
183
PRINT
@
(23,32),
STRING$(20,32);
185
PRINT
@(23,32),
"ASCII
CODE
IS
"HE}($(ASC()-($))
;
170
PRINT
@
(R,C),"";
180
GOTO
130
2-156

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals