May 7, 200322 yr Ok i have a closing script that loops twice for some reason it should only run once i have type it below when i say loops twice i mean it goes to the About screen then the Thank You screen,back to the About screen and again to the Thank You screen then it closes the template Allow User Abort [Off] Allow User Abort [Off] Close[Codes] Close[Large] Close[Pub] Close[sheet] Sort {Restore,No Dialog] Show All Records Go To Layout[About] Pause/Resume Script[0:00:02] Go To Layout[Thank You] Pause/Resume Script[0:00:02] Close[Main Menu] if it is the second pause resume script then how should it be written any help would be appreciated
May 7, 200322 yr What file calls the closing script? Is it possible that more than one file has this script? Mike
May 7, 200322 yr Author The file main menu runs the script and then closes it self The about layout is in the main menu file and so is the thank you layout the Close,Large,Pub & Sheet files only have a relationship to the main menu file
May 7, 200322 yr maybe you have you set in the doc preferences to perform the closing script when the file is closed BUT the script is performed when clicking a custom close button you have made. if so, when you close manually the file the script is called just one time. But when you close the file with your custom close button the script is called twice. It is called the first time from the button, the second time when script maker performs the Close[Main Menu] step.
May 7, 200322 yr Author How stupid could i have been that was exactly what it was. It was right in front off me and i did not see it sorry if i wasted anyones time.
May 8, 200322 yr "How stupid could i have been that was exactly what it was. It was right in front off me and i did not see it sorry if i wasted anyones time. " Don't worry!! Forums exists for that kind of problems too! Btw: it's interesting that you can set a closing script in the doc preferences and put Close[] in that script without FM entering in a loop!
Create an account or sign in to comment