Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clear Lastkey()?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00049514
Message ID:
00049523
Vues:
69
>>Is there a way to programmatically clear or change the value in LASTKEY? I'm trying to do this using KEYBOARD, but I'm on a ReadOnly grid and every parameter I enter (KEYBOARD etc.) causes a beep and readonly message. CLEAR TYPEAHEAD clears the buffer , but not the LASTKEY value...any ideas?
>
>I guess you could create custom property nLastkey, set it in Form.KeyPress event (This.nLastkey=nKeycode) and use it and reset to 0 whenever you want.

Excellent idea. I just had to set KeyPreview = .T. and it works fine. Thanks Edward.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform