April 22, 200916 yr 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!
April 22, 200916 yr 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
April 22, 200916 yr 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
April 22, 200916 yr Author 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.
Create an account or sign in to comment