Determines whether or not a character is present in the keyboard buffer.
Syntax
CHRSAW([nSeconds])
Returns
Logical
Arguments
nSeconds
Specifies the time in seconds that CHRSAW( ) waits before checking the keyboard buffer. The keyboard buffer is checked immediately if you omit nSeconds.
Including nSeconds lets you use CHRSAW( ) for a variety of timed activities. For example, your program can close an application if a key hasn't been pressed for a specific number of seconds.
Remarks
CHRSAW( ) returns true (.T.) if a character is present in the keyboard buffer, and false (.F.) if not. CHRSAW( ) doesn't affect the keyboard buffer contents.