Jump to content
Sign in to follow this  
PKF

Exit script loops inappropriately

Recommended Posts

If a user indicates he/she wishes to exit the database, this script progresses appropriately to the 'Exit Application' step, but then loops back to the custom dialog a 2nd time! On the second pass through the script, the database closes.  Any idea how this could happen and how to avoid users having to respond twice about exiting a database?  I'm stumped. The same looping occurs if using the 'Close Window' or 'Close File' steps.

 

 

 

Share this post


Link to post
Share on other sites

Any help for this poor misguided would-be database designer would be appreciated.

 

If a user indicates he/she wishes to exit the database, this script progresses appropriately to the 'Exit Application' step, but then loops back to the custom dialog a 2nd time! On the second pass through the script, the database closes.  Any idea how this could happen and how to avoid users having to respond twice about exiting a database?  I'm stumped. The same looping occurs if using the 'Close Window' or 'Close File' steps.

 

Here's the actual script:

 

# Script exits database

Show Custom Dialog ["Exit Database"; "Do you wish to exit database?"]

Set Variable [$UserInput; Value: Get(LastMessageChoice)]

If ($UserInput = 1)

  Exit Application

  // Close Window [Current Window]

  // Close File [Current File]

End If

Exist Script

 

Share this post


Link to post
Share on other sites

Not sure about your "Loop"  since your script does not contain one.  Also be sure you don not have a script trigger assigned to your button which could cause a perceived loop. Also remember the buttons assignments  1,2,3  are opposite to the displayed buttons for the user.  See attached.  Hope this helps or leads you down the correct path. 

post-88355-0-94076400-1418417212_thumb.j

Share this post


Link to post
Share on other sites

I merged  your two topics into this one.

 

Please do not multiple post your questions. There are lots of reasons if you want to know what some of whom are Private  Message me

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.