BASIC FUNCTIONS
SECTION 5.10
INCHR
5. 10.3 Function INCHR inputs a single character from the keyboard.
Syntax INCHR variable name
INCHR["PROMT STRING";] variable name
Examples 10 INCHR ''DECIMAL VALUE";A
20 PRINT A
30 GOTO 10
displays:
DECIMAL VALUE ?A
ffj
DECIMAL VALUE ?B 66
etc.
Remarks INCHR does not wait for ENTER to be pressed. A prompt
message is displayed as with INPUT. Only one variable may
be entered. The variable is set to the decimal value of the
character, as detailed in section 9.2, ASCII CHARACTER SET.
VER.V09F
A comma following INCHR or the prompt message will suppress
the prompt character '?' The comma replaces the semicolon
in the syntax.
NOTE: No values are returned for SHIFT, HELP, CONTROL or
POWER keys, although these function normally during INCHR.
'Escape' cannot be used to return to Basic from an INCHR
loop, since it simply returns the value 27!
PAGE 5 - 45