Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bypassing events on other objects.
Message
De
18/10/2001 10:30:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/10/2001 10:23:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570234
Message ID:
00570241
Vues:
16
>I am looking for a way to keep the Valid event on a TextBox from firing if I click on a navigation button (cmdCancel). There is code behind the Valid Event of the Textbox that requires data entry. However, if the user clicks cmdCancel I want the form to stop everything do all TableReverts without caring about whether or not there is text in the current TextBox that has the focus. I could not find anything written that describes how to keep some event from firing.


It is much simpler to do all field and record validation on saving, in a user-defined method like Form.OnSave(). Hereby, you completely bypass the problem you mentioned.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform