Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancelling string send to keypress method.
Message
De
29/05/1998 19:55:39
 
 
À
29/05/1998 18:20:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00103271
Message ID:
00103280
Vues:
30
>I'm trying to cancel a character string produced by a keypress of a programmable keyboard from being sent to a textbox by validating the first character in the string. Thus far the only methods I've achieved are (1) to let the string write to the textbox and then validate the leftmost character and input an empty string or (2) to disable the textbox by validating the first character in the keypress method of the form. The ideal would be to clear the keyboard buffer from the keypress method, but that doesn't seem to work.
>
>- Edward Drury-Lane

Edward:
We had a similar problem of canceling mouse clicks and other key presses performed by users while processes where running. One way of canceling the keypresses were to give the following commands in the guilty method.

The principle of this is to wait until all keystrokes are processed via the inkey trap.

DO WHILE INKEY("M") > 0
ENDDO

Hope this helps.

Binoy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform