CLEAR TYPEAHEAD

From Recital Documentation Wiki
Revision as of 11:26, 23 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


Purpose

Clear terminal typeahead buffer


Syntax

CLEAR TYPEAHEAD


See Also

LASTKEY(), READKEY(), SET COMPATIBLE, SET TBUFSIZE, SET TYPEAHEAD


Description

The CLEAR TYPEAHEAD command clears the typeahead buffer of all keystrokes entered. The CLEAR TYPEAHEAD commands also resets the LASTKEY() and READKEY() functions to zero, unless SET COMPATIBLE is set to FOXBASE | FOXPRO | FOXPLUS.


Example

clear typeahead
dialog box "Press ^W to continue, ^G to abandon."
if lastkey()=ctrl("g")
    return
endif


Products

Recital Mirage Server, Recital Terminal Developer