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

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

Recommended Posts

Posted

Context: A Button definition can invoke a Script AND specify how a previously Paused Script will be handled (Pause, RESUME, Halt or Exit) following conclusion of the Script invoked by the button.

My Question: Can a Script Trigger somehow similarly RESUME a Paused Script upon completion of the Triggered Script? If so, how?

P.S. I am in FMA 10. Under Custom Menus I see that I can create a menu to execute a "Resume Script," but I have not found a useful (or attractive) way to apply this to accomplishing my goal.

Thank you in advance!

Posted

If you can not get a definitive answer to your question you may want to think about using a global variable.

Depending on how that variable is set the script does what it needs to do. So you can set the variable say $$myVar to something once the button is clicked, and just before you exit that script and recall the previous script that can then examine the variable and do whatever you want.

If(Exact($$myVar,0)

Do something here

Else

Do something here

Endif

Exit

Posted

Can a Script Trigger somehow similarly RESUME a Paused Script upon completion of the Triggered Script? If so, how?

Not directly, since the trigger evokes a new script stacking up underneath, a requirement would be able to flip the execution, via a command.

Until this might or might not arrive in the tool, must another scripting style be used, such as chopping the script up in smaller parts, exploiting this functions behaviour:

http://fmhelp.filemaker.com/fmphelp_10/en/html/scripts_ref1.36.4.html

--sd

Posted

Thank you for this suggestion, but splitting the script is exactly what I was hoping to avoid as that would require turning local variables into globals (or some equivalent) that would reduce the portability of my script.

This topic is 5695 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.