Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine reason for leaving a control
Message
From
08/02/2001 14:22:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to determine reason for leaving a control
Miscellaneous
Thread ID:
00474125
Message ID:
00474125
Views:
59
On my form, I have a control whose valid normally fires when exiting. However, I would like the valid to abort (or not execute) if the user hits the EXIT control of my form (in effect, making validity checking moot...and annoying if the user is basically just trying to abort the entire process by exiting.)

I tracked the events in the debugger and I find that myform.mycontrol.valid()executes before myform.exitcontrol.when(), so I cannot use the latter to provide some kind of feedback that alters the behavior of the former.

Surely others have encountered the need to abort (or otherwise modify the action of) a validity check if the user has clicked on some other control. How is this done?
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Next
Reply
Map
View

Click here to load this message in the networking platform