AndrewBruno Posted January 5, 2003 Posted January 5, 2003 Something odd is happening with my scripts ( FM 5.5, Windows 98). The Following works fine : Perform Script ( External:FileABC) The external script is a simple one that selects a layout. However the following doesn't work Show Message If ( Current(MessageChoice)=1 Perform Script ( External:FileABC) Exit Script EndIf Go to layout DEF With message choice 1, the script does change the layout in the ABC file, but the script continues to layout DEF in the original file. I've used this type of routine umpteen times and don't recall any problems. Should I reinstall FM ? I know the files have not been damaged as they are always closed properly. Many thanks
kenneth2k1 Posted January 5, 2003 Posted January 5, 2003 Hi: This might not be working because you will need the script to end in the external file. At the end of the external script, but the halt script step in. See if that works. Ken
Robert Schaub Posted January 5, 2003 Posted January 5, 2003 Quote Show Message If ( Current(MessageChoice)=1 Perform Script ( External:FileABC) Exit Script EndIf Go to layout DEF With message choice 1, the script does change the layout in the ABC file, but the script continues to layout DEF in the original file. end quote Try it this way Show Message If ( Current(MessageChoice)=1 Perform Script ( External:FileABC) Else Go to layout DEF EndIf
kyle Posted January 5, 2003 Posted January 5, 2003 yup ! ken is absolutely right. from your script you are exiting the script in the def original file after you perform the external[file:abc]. so you need to get rid of exit script step which is at the below external script step. regards, kyle
kyle Posted January 5, 2003 Posted January 5, 2003 hey chopper just beat me to it. now you got plenty help. you must be cute. regards, kyle
andygaunt Posted January 5, 2003 Posted January 5, 2003 Just for reference; the IF step should read If ( Status(CurrentMessageChoice)=1
Recommended Posts
This topic is 7996 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