PRESS (put characters in the buffer)

Top  Previous  Next

 

PRESS(string)

PRESS

Places characters in the keyboard input buffer.

string

A string constant, variable, or expression.

PRESS places characters in the Windows keyboard input buffer. The entire string is placed in the buffer. Once placed in the keyboard buffer, the string is processed just as if the user had typed in the data.

Example:

IF LocalRequest = AddRecord       !On the way into a memo on adding a record

TempString = FORMAT(TODAY(),@D1) & ' ' & FORMAT(CLOCK(),@T4)

PRESS(TempString)                !Pre-load first line of memo with date and time

END

See Also:

PRESSKEY