Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to clear lastkey()?
Message
De
30/08/2011 17:41:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Divers
Thread ID:
01522334
Message ID:
01522337
Vues:
66
Clear Typeahead, as far I can remember.

>The IE browser control is kinda funky to work with so you gotta get creative.
>
>I am trying to prevent the cursor from exiting an HTML Edit control with the keyboard. The only code that works reliably is:
>
if inlist(lastkey(),5,4,19,24,13,9,15)
>  NODEFAULT
>endif
>
>However, if the lastkey() was any of the above and I click on another object on the form the cursor stays in the HTML Editor .
>
>Is there command that will clear/change the value of last key besides one that would wind up in the HTML? I want to put it right under the NODEFAULT.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform