Navigation:  Language Reference > 13 - Built-in Functions >====== PRESSKEY (put a keystroke in the buffer) ====== Previous pageReturn to chapter overviewNext page

PRESSKEY(keycode)

blk2blue.jpg

PRESSKEY Places one keystroke in the keyboard input buffer.
keycode An integer constant or keycode EQUATE label.

PRESSKEY places one keystroke in the Windows keyboard input buffer. Once placed in the keyboard buffer, the keycode is processed just as if the user had pressed the key. ALIAS does not transform a PRESSKEY keycode.

Example:

IF Action = 'Add'      !On the way into a memo control on an add record

Cus:MemoControl = FORMAT(TODAY(),@D1) & ' ' & FORMAT(CLOCK(),@T4)

                      !Pre-load first line of memo with date and time

PRESSKEY(EnterKey)    !and position user on second line

END

See Also:

PRESS