E r g e b n i s / R e s u l t
Clear the Open Access keyboard buffer
B e s c h r e i b u n g / D e s c r i p t i o n
Clears the keyboard input buffer. This is most useful when about to
ask a very important question like 'Is it alright to delete these'
You would call this routine before the question to prevent a user
from typing <do:F10> in advance.
S y n t a x
Code:
bool = call ('FLUSHBUF') P a r a m e t e r
There are no parameters for this procedure
R e t u r n s
The procedure returns a Boolean or True/False value.
TRUE - the procedure worked correctly.
FALSE - a problem occurred.
B e i s p i e l / E x a m p l e
Code:
attach 'KEYBOARD'
a = call ("FLUSHBUF") ! clear the entire keyboard buffer
put "Are you sure you want to delete everything ?"
key get x
:k_do: purge db
end keys
detach 'KEYBOARD'