Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get LastKey()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00854528
Message ID:
00854607
Vues:
23
Hi,

>
I am trying to do a test if LastKey() = 13 is entered, but only on the current form. I want to ignore any keys pressed BEFORE I entered the form.

Is there a way of 'Clearing' any keys so that LastKey() would just recognise keys depressed after, say, the Init of the form ?
>

I'd try a different approach. Set the forms KeyPreview .T., and add a LastKey property to the form. In the Form.Keypress 'This.Lastkey = nKeyCode' and then just test 'ThisForm.LastKey'

HTH,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform