<<

Contents

Search

>>

 

INKEY$

 

 

Function

 

 

Syntax:

INKEY$

 

Meaning:

Reads a character from the keyboard.

 

INKEY$ does not wait until a key is pressed. If there is no character, the value of INKEY$ is the empty character string.

 

If a key has been pressed, INKEY$ returns the code of the key.

 

Sample:

WHILE NOT ENDE%

DO

   ...

   IF INKEY$ = ESC$

   THEN BREAK

   ENDIF

ENDDO

 

See also:

GETCHAR

INPUT$

UNGETCHAR