Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Hangup when Cancelling!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993975
Message ID:
00994023
Views:
23
>Well, the Cancel button Default Property is .F. . I am able to select it with the mouse, even when the employee code field of the grid has focus. When I select the Cancel button, is when the system window for verifying my Cancel choice comes up.... and the hang-up.
>
>I guess I am forced to do some fancy coding to DISABLE the Cancel button while the Employee Code has focus.
>
>Thanks!

Tommy,

Actually, you can put some code in the VALID() that can check a couple of things:

* Is the mouse currently over the Cancel button?
* Does the Cancel button the current control?

Then, only if those two tests fail do you do your validation code.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform