Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How did I exit?
Message
 
 
À
28/11/2007 12:53:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01271800
Message ID:
01271807
Vues:
20
>I have a Textbox control. When I exit that control I compare the original value with the current value. If they are the same, then I don't do anything. I now want to run the validation/lost focus code if they exit by pressing the ENTER key. If the user TABs out or mouse-clicks out, I want to follow the original logic.
>
>How can I capture the keystroke/mouse action the caused the exit from the control?

Try
IF LASTKEY() = 13 AND NOT MDOWN()
...
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform