jsutherlin Posted February 13, 2003 Posted February 13, 2003 Does anyone know how to pause a script that has an external sub-script called from within it. I don't have a problem running the sub-script but the database that has the sub-script requires the user to change/add info. Once they are done doing that I need the original script to resume what it was doing. I've tried pause but that only works for a certain set amount of time. Thanks.
LiveOak Posted February 13, 2003 Posted February 13, 2003 There is no need to insert a pause statement into a script to allow a subscript to run from within the script. When a script calls a subscript, control is transfered from the script to the subscript (or external subscript, same deal). If you need a pause for user data entry, put it in the external subscript. Upon resuming, the external subscript with continue and return to the main script (as long as there is one script statement after the perform script(external) step to return to. # Main Script bla bla bla Perform Script(external, ) ---> #External Script bla bla Pause/Resume #User does data entry and hits continue bla bla <--- #Return from external script (next main script statement) bla bla -bd
jsutherlin Posted February 13, 2003 Author Posted February 13, 2003 I got it to work...sort of. The only way I get the original script to pause and keep the focus on the database that has the external sub-script was to put an indefinite pause in the sub-script so that the user can do the modifications. One the resume button is clicked on then the focus goes back to the original database and then the original script finishes. Is there any way to do this without the pause in the sub-script. Thanks again.
Razumovsky Posted February 13, 2003 Posted February 13, 2003 You could cut your original scripts into 2 parts: ScriptA1: do something do somethingelse do somethingelse perform script (external:scriptB1) ScriptB1: do something do somethingelse ScriptB2 (runs when user clicks a "continue" button) perform script (external:scriptA2) ScriptA2: Do something do last parts of original A script -Raz
Recommended Posts
This topic is 7958 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