Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to bypass an event ?
Message
From
12/04/2007 06:50:03
 
 
To
12/04/2007 04:08:35
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01214853
Message ID:
01214874
Views:
9
I have an input checking control in a Lostfocus event of a editbox,
when I close the form it always run the code in the Lostfocus event.
I want to bypass to run the code in the Lostfocus event, how to code it.


Set the cancel property of your close button to .t.

Then wrap the validation code so that it only runs if LASTKEY() # 27.
Previous
Reply
Map
View

Click here to load this message in the networking platform