HELP!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Lazerpower
    Indigo Rose Customer
    • Nov 2001
    • 33

    HELP!

    Morning all,
    Hope someone can help me with this fun little problem I am having.
    Here is the deal, what I have below is what is on my Project Setting-On Close.
    IF (%Shutdown% = 1)
    %PreventApplicationClose% = "False"
    Application.Exit
    ELSE
    %Exit?% = Dialog.MessageBox ("Confirm", "Do you want to EXIT this progr...", Yes|No, Question)
    END IF
    IF (((%Exit?% = Yes)))
    %PreventApplicationClose% = "False"
    Application.Exit
    END IF
    IF (((%Exit?% = No)))
    %PreventApplicationClose% = "True"
    END IF

    This works just fine when I preview but not on CD.
    Can't seem to figure out why. The %Shutdown% is set to 0 at project start and set to 1 when a exit button is clicked on certian pages.
    The %shutdown% part works ok, it's everything past ELSE that gives me the problem on CD.

    When I press NO when dialog comes up on CD it stays on the current page, which I want.
    When I press YES on the dialog, the dialog keeps comming up over and over. If I press YES a few times while repeating, then next time I press NO, the program closes!

    This is driving me nuts! Again this works great on preview.

    Thanks for continued help everyone!

    Tom
  • Lazerpower
    Indigo Rose Customer
    • Nov 2001
    • 33

    #2
    HELP! - (WAIT NEVERMIND!)

    Silly, Silly.....Me!
    Can't put Application.Exit in the OnClose of PROJECT settings.
    It will loop the OnClose over and over and over and over...

    Brain Fart on my part!

    Tom

    Comment

    • Lorne
      Indigo Rose Staff Member
      • Feb 2001
      • 2729

      #3
      Re: HELP! - (WAIT NEVERMIND!)

      Heh, good catch. [img]/ubbthreads/images/icons/smile.gif[/img]
      --[[ Indigo Rose Software Developer ]]

      Comment

      Working...
      X