Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindEvent and NoDodefault equivalent
Message
 
To
06/02/2010 09:57:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01447903
Message ID:
01447904
Views:
65
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform