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

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

Recommended Posts

Posted

I'm trying to get the status of the Get(LastMessageChoice) after performing a PRINT SETUP command in my script. I've tried to accomplish this two different ways

1] An IF command testing the Get(LastMessageChoice)as the script step following the PRINT SETUP command

2] An Insert Calculation operation of the Get(LastMessageChoice)following the PRINT SETUP command

Both tests always result in a value of zero [0]. I'm expecting a '1' if OK and a '2' if CANCEL.

I have no problems with this approach when using a custom dialogue box, only with the system provided PRINT SETUP command.

Posted

Not sure you can use Get(LastMessageChoice) as it is outside the confines of FM.

Get(LastError) works for me though, where Error 1 is "User cancelled last action"

Posted

Thanks for the advise. It's strange that the described function doesn't work, especially since it's part of the FM library of functions.

I'm hopeful that your suggestions solves my dilemma

This topic is 5519 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.