Newbies Jan K Posted February 6, 2002 Newbies Share Posted February 6, 2002 Is there anybody who can help me give a hint how to solve this problem: Every time this button is pressed on a ceretain layout, a different script shall start to run., For example: first press runs script 1, next press runs script 2, next press runs script 3 and so on. When i leave the layout this button should be Link to comment Share on other sites More sharing options...
ZuperZZ Posted February 6, 2002 Share Posted February 6, 2002 Hi Jan, 1. First create a Global number field (flag). 2. Create a script for your button, If["Flag=""1"] Perform Script [sub-scripts,"1"] Set Field ["Flag","2"] Else If["Flag=""2"] Perform Script [sub-scripts,"2"] Set Field ["Flag","3"] Else ... and so on Be sure to set the "Flag" to "1" before you leave the layout. (put a "Set Field ["Flag","1"]" in the button that takes you out of the layout) zz Link to comment Share on other sites More sharing options...
Newbies Jan K Posted February 6, 2002 Author Newbies Share Posted February 6, 2002 Thank you very very much ZUPERZZ for this elegant and easy solution. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 8086 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