Newbies JAG Posted September 11, 2003 Newbies Posted September 11, 2003 fileMaker 5.5: I would like to pause a script so the user can make a selection by clicking a button on the screen. I would like this button to take some action but to then continue the paused script. How can I do this? It seems that the only way to continue a paused script is to click the continue icon in the status area.
stanley Posted September 11, 2003 Posted September 11, 2003 In Layout mode, select the button, then go to Format -> Button... and you'll find a pull-down selector that says "Pause current script." Change that to "Continue" and the script will resume when the button is clicked. -Stanley
Newbies JAG Posted September 12, 2003 Author Newbies Posted September 12, 2003 This sounds close to what I want to do. However, I want the button that I click to run a script and then continue the script that opened and paused the screen.
stanley Posted September 12, 2003 Posted September 12, 2003 It sounds like you want all this to happen on the same layout. If so, what you do is actually create two nearly identical layouts - the only difference being that on the first one, the button starts the script. Then, when you reach the point you want to pause, you switch to the other layout. In this second layout, the button simply resumes the script. Otherwise they're identical. You might want to change the text or icon on the button to reflect what's happening. -Stanley
Ugo DI LUCA Posted September 12, 2003 Posted September 12, 2003 I may be wrong but you could also control the script triggered with a global field. You'd need to keep the settings of the button to "continue" as Stanley said g_ControlScript (global, number) The script could go SetField (g_ControlScript ,Abs(g_ControlScript -1)) If (g_ControlScript =1) Do some other things Else Pause/Resume
Recommended Posts
This topic is 7746 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