Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplest way to prevent Deactivate in the page's Click
Message
 
 
To
30/06/2005 16:32:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027764
Message ID:
01027875
Views:
10
>I'll try to be a little more explicit.
>
>in Page.Activate
>
>   this.addproperty("AmIActive", .T.)
>
>in Page.Deactivate
>
>   if this.AmIActive
>      this.AmIActive = .F.
>      .... and the rest of what I want to do
>   endif
>
>So, the flag is on when the page is activated; the first time Deactivate is called, you do your stuff, and then turn off the flag so that if it should be de-activated again, you won't run your code again.
>
>Hope this is clear (oh, and that it works...)

I think, you meant to add a flag in page' Init, set it to true in the activate and re-set in Deactivate. Am I right?

This would not work, since after the Deactivate the Activate of the same page fires...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform