Announcement

Collapse
No announcement yet.

Difference between "On Close" & "On Destroy"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Difference between "On Close" & "On Destroy"

    Can someone please clarify the difference between "On Close" & "On Destroy"? I couldn't find this answer in Help.

    Thanks

    Craig

  • #2
    Re: Difference between "On Close" & "On Destroy"

    For pages:

    "On Close" is triggered when something happens to "initiate" a page close, e.g., a "Page - Jump" action has been performed.

    At this point, you can override the closing of the page by setting the variable %PreventPageClose% to TRUE.

    "On Destroy" is only triggered after all of the "On Close" actions. At this point, the page is going to close, and there's nothing you can do to stop it from closing. The page is essentially deleted from memory (hence the name).

    The same thing applies to the project events, only they're triggered by the user clicking on the close gadget, or by an "Application - Exit" action.
    --[[ Indigo Rose Software Developer ]]

    Comment

    Working...
    X