User`s guide
82
CipherLab BASIC Compiler
User's Guide
Remarks
"X$" is a string variable to be assigned to the character read.
It can be used with menu operation to detect a shortcut key being pressed, or with
touch screen operation to detect a touched item.
Example
...
PRINT "Initialize System (Y/N)?"
Loop:
KeyData$ = INKEY$
IF KeyData$ = "" THEN
GOTO Loop
ELSE IF KeyData$ = "Y" THEN
GOTO Initialize
…
See Also
CLR_KBD , PUTKEY
INPUT
Purpose
To read user input from the keypad, store the input data in a variable, and print it to
the display.
Syntax
INPUT variable
Remarks
"variable" is a numeric or string variable that will receive the input data. The data
entered must match the data type of the variable.
Note that the use of ENTER key is necessary to end with an input session.
Example
INPUT String$
PRINT String$
INPUT Number%
PRINT Number%
' input a string variable
' input a numeric variable
INPUT_MODE
Purpose
To set the display mode of the input data.
Syntax
INPUT_MODE(mode%)