Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7996 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.