June 6, 200223 yr Is there a command to exit all currently running scripts? I know there's exit script, but if i'm 2-3 levels deep in scripts i want an easy way out. Thanks -j
June 7, 200223 yr Author Does that just "halt" the current script or all scripts? And where does it dump me, just from that last step, or do i have to exit my script? Thanks -j
June 7, 200223 yr A "halt" statement halts all scripts and leaves you wherever you are when the statement is encountered. If you want to go to a particular layout/state/found set/etc., you must perform the script steps you need to accomplish this before executing the halt. -bd
June 7, 200223 yr Exit Script - Exits current script and returns to previous script Halt Script - Halts ALL scripts at current point Personally I ALWAYS use "perform sub scripts", but it is possible just to chain sripts together by turning off this feature. It's not a good practise to "Halt" a script, I don't do it because my scripts rely upon "proper" completion
June 7, 200223 yr I disagree with Mark. Halting all scripts is useful in some circumstances. I validate some of the user's answers in a script maybe 2 levels down. If an answer is wrong, he gets an error message and the script halts on the current layout, so he can fix the error. In this case, exiting a script is the wrong solution since the script above will continue processing.
June 7, 200223 yr When I don't want the script to continue until input is validated, I enclose the data entry in a loop with an Exit Loop If step.
June 7, 200223 yr Author Thanks for all the replies. I want to use it because my FM checks e-mail at regular intervals. If it can't connect to the server to send the mail, i want it just to stop everything, other i could have the problem of it thinking that it connected and set everything to sent when it's not. I know i could set up a bunch of error scripts, but this is much easier. At at this point, no data has been changed except for a POP/SMTP result. THanks
June 7, 200223 yr I found this subject line amusing. Whether the script event being run is one of sub-scripts or one of scripts-chained-together, ScriptMaker is handling only one script event at a time. It is single-threaded. Put another way, there can be only one running script.
June 10, 200223 yr It is definitely true that you can have only one script running at time, but there might be as many as you want paused scripts. So halt would exit them all. Dj
Create an account or sign in to comment