> 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.