AKD BASIC User Guide | 5 AKD BASIC Functions
5.10 INKEY$()
General Information
Type Function
Description
Returns a 1 character string corresponding to the character in the serial port
receive buffer. If there is no character waiting the INKEY$ will be the Null string
(""). If several characters are pending only the first one is returned.
Syntax
x$ = INKEY$
Instructions
Assigning a string from INKEY$ removes the character from the serial port's receive buffer.
Example
' remove all characters from the receive buffer
and put them into A$.
'--------------------------------------
new$ = INKEY$
While new$ <> ""
A$ = A$ + new$
new$ = INKEY$
Wend
73 Kollmorgenâ„¢ | March 30, 2012