Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7874 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

What file calls the closing script? Is it possible that more than one file has this script?

Mike

Posted

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

Posted

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.

Posted

"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!

This topic is 7874 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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