Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Hangup when Cancelling!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00993975
Message ID:
00994023
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform