nightdesigns Posted June 6, 2002 Posted June 6, 2002 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
nightdesigns Posted June 7, 2002 Author Posted June 7, 2002 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
LiveOak Posted June 7, 2002 Posted June 7, 2002 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
IdealData Posted June 7, 2002 Posted June 7, 2002 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
SteveB Posted June 7, 2002 Posted June 7, 2002 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.
The Bridge Posted June 7, 2002 Posted June 7, 2002 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.
nightdesigns Posted June 7, 2002 Author Posted June 7, 2002 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
Keith M. Davie Posted June 7, 2002 Posted June 7, 2002 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.
djgogi Posted June 10, 2002 Posted June 10, 2002 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
Recommended Posts
This topic is 8206 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 accountSign in
Already have an account? Sign in here.
Sign In Now