September 11, 200322 yr Newbies 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.
September 11, 200322 yr 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
September 12, 200322 yr Author Newbies 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.
September 12, 200322 yr 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
September 12, 200322 yr 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
Create an account or sign in to comment