Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BindEvent and NoDodefault equivalent
Message
 
À
06/02/2010 09:57:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01447903
Message ID:
01447904
Vues:
66
>I have been using BindEvent and have been wondering if it is possible in the case where the Flags argument is 0 (Call delegate code before event code) that my delegate code could cause the normal event code to be skipped.
>
>That is -- I am wondering if in my delegate code I can have some validation indicating whether I want to allow the real event to occur.
>
>Thanks


NOT TESTED!

Put a property in the Form/Class named bFireNormalEvent and set it to .t.
Then in your Delegate event you could set it to .t. if you want normal event code to be executed and .f. if you do not want this.
In normal event code:
IF this[form].bFireNormalEvent
   * the code for the normal event goes here
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform