Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter in a text box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00393414
Message ID:
00393990
Vues:
13
>>Ok,
>>
>>I got it to kind of work. The problem is I have to go into the textbox twice for it to work. When I hit enter the first time it doesn't do anything. When I go back and put the cursor in the textbox again and press enter again then it works. Why could this be?
>>
>Tyler,
>
>Why not simply check the value of LASTKEY() in the Valid event?

LASTKEY() will return whatever the most recent keystroke was, which might not be the one that fired the Valid()! INKEY() takes the next available keystroke from the head of the keyboard queue, but LASTKEY() returns the tail of the queue...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform