Thanks Dennis,
I hope the manual will be improved to mention this technique.
This did not seem to solve my poblem, however, so the problem is something else. I find that the only time the module works correctly is if I put a pause command before, or after, the routine. Removing the pause command makes the bug re-appear each time. A click of the mouse on a button on the form causes a variable to re-populate the from, even though it is cleared before. This only happens on the first instance.
Robert B.
 
 
In a message dated 11/22/2003 8:18:49 AM Eastern Standard Time, [EMAIL PROTECTED] writes:
Robert,

On entry to your eep you need a loop to clear the buffer.

use chkkey to check for a key in the buffer, and getkey to eat it.

When no more keys are detected, exit the loop and proceed as you are
now.

Read the instructions on these commands at
http://rsyntax.com/Syntax.htm

Dennis McGrath




--- [EMAIL PROTECTED] wrote:
> Help!
> I have been reading the manuals - no help. Recoding and testing - no
> progress.
> Is there a way to clear the keyboard buffer? Using lastkey in an eep,
> press
> the F2 key (the key I want to capture), works OK. Next time I click
> the mouse,
> the eep is run and still captures the F2 key from the buffer and
> executes
> function (a no no).
>
> Thank,
> Robert B.
>

Reply via email to