Arny Posted October 14, 2009 Posted October 14, 2009 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.
IdealData Posted October 14, 2009 Posted October 14, 2009 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"
Arny Posted October 14, 2009 Author Posted October 14, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now