3.11
Keypad commands
Purpose
Κ
To clear the keypad buffer.
Syntax
Κ
CLR_KBD
Example
Κ
CLR_KBD
Description
Κ
This command will clear keypad buffer.
Purpose
Κ
To read one character from the keypad buffer then remove it.
Syntax
Κ
Str$ = INKEY$
Example
Κ
START:
S$=INKEY$
IF S$<>"" THEN
PRINT ASC(S$)
IF ASC(S$)=27 THEN ‘ESC key
END
END IF
END IF
GOTO START
…
Description
Κ
Str$
is a string variable to be assigned to character read.
Purpose
Κ
To set or get input length when using “INPUT” or INPUT_S"
command.
Syntax
Κ
X%= INPUT_LEN
INPUT_LEN=A%
Example
Κ
INPUT_LEN=4
PRINT "INPUT STRING:"
A%=INPUT("",S$)
…
PRINT “Input length:”; INPUT_LEN
Description
Κ
A%
is an integer variable. When using “INPUT” or
“INPUT_S” command, it can set limit on input length(When
N%=0 indicating not limit).
X%
is an integer variable, indicating the input length.
T P C 7 0 3 0
Programming Manual Ver. 1.00
54/131