Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Skipping valid when QueryUnload fires.
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Skipping valid when QueryUnload fires.
Miscellaneous
Thread ID:
00557379
Message ID:
00557379
Views:
55
I have some code in a valid event of a text box. The code is wrapped with:
if lastkey() <> 27
** Run code
endif
If the focus is on that textbox and the user presses ESC or clicks the Cancel button (with cancel set to .T.) the valid code is skipped. Which is want I want.

The problem is when the user clicks the "X" box on the form. The valid fires before the code in QueryUnload. I would like to bypass the valid and handle it manually from the QueryUnload. Can I do that?

TIA
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Next
Reply
Map
View

Click here to load this message in the networking platform