Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking to see if command is being executed..
Message
From
16/06/1999 14:49:28
 
 
To
16/06/1999 14:44:56
Frank Cavone
Monetary Management of Ny, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00230549
Message ID:
00230579
Views:
22
That's because LastKey() doesn't change until you type something. Try this to clear the value from LastKey():
IF LastKey() = 27
   KEYBOARD CHR(255)
   INKEY()  && eat the character we just keyboarded
   RETURN .T.
ENDIF
HTH

>thanks. i tried it and it works, but if i click elsewhere on the form it bypasses the validity check on the text box, maybe i put it in the wrong spot?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform