<<

Contents

Search

>>

 

UNGETCHAR

 

 

Instruction

 

 

Syntax:

UNGETCHAR[(<Delete>)] <String>

 

<Delete>

= <NUM-EXPRESSION>

<String>

= <STRING-EXPRESSION>

 

 

Meaning:

Writes a string into the keyboard buffer.

 

If <Delete> <> 0, the keyboard buffer is deleted before the insertion of the <String>.

 

When the program waits for a keyboard input the characters from the keyboard buffer are read first.

 

With UNGETCHAR it is possible to simulate keyboard inputs and control commands since function keys are also allowed.

 

Parameter:

Delete

<> 0: Content of keyboard buffer is deleted.

String

String expression

 

Sample:

ON F9 MACRO PROG.F9

 

Macro PROG.F9:

UNGETCHAR "Hello World" + F1$

/* When key F9 is pressed in an alphanumeric mask field,

/* "Hello World" is inserted at the current cursor position and

/* the configuration mask is started by F1.

 

See also:

CLEAR_KEYBOARD_BUFFER

GETCHAR

INKEY$