CLEAR TYPEAHEAD

From Recital Documentation Wiki
Revision as of 15:07, 27 April 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

Class

Keyboard Events


Purpose

Clear terminal typeahead buffer


Syntax

CLEAR TYPEAHEAD


See Also

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


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