I have some code in a valid event of a text box. The code is wrapped with:
if lastkey() <> 27
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!