124
CipherLab BASIC Programming Part I
CURSOR
Purpose To turn on/off the cursor indication on the LCD.
Syntax CURSOR(status%)
Remarks “status%” is an integer variable, indicating the cursor status.
0
1
The cursor indication is off.
The cursor indication is on.
Example
CURSOR_X
Purpose To get the x coordinate of the current cursor position.
Syntax X% = CURSOR_X
Remarks “X%” is an integer variable to be assigned to the column position of the cursor.
Example
ON READER(1) GOSUB BcrData_1
...
BcrData_1:
BEEP(2000, 5)
Data$ = GET_READER_DATA$(1)
Pre_X% = CURSOR_X
Pre_Y% = CURSOR_Y
Locate 8, 1
PRINT Data$
Locate Pre_Y%, Pre_X%