Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Location
    Towson, MD USA
    Posts
    16

    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. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts