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

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

Recommended Posts

Posted

Hi, I'm having some trouble stopping my script from dropping out into the wrong window because I can't seem to capture the error code. I have the Set Error Capture On script step right before the Close Window script step. Right after that step I set a $$Error variable with Get (LastError). The problem is that unless valid data is entered, I don't want the window to close or the script to continue, as it is doing now. Help or an example or two would be much appreciated. Best wishes, Dave.

Posted (edited)

Use the Set Error Capture script step just before the step that you want to trap for. and use the Get(LastError) = XXX (XXX equals the error you are trapping for)

HTH

Lee

Edited by Guest
Posted

Thank you, but which script step? The result always seem to be zero. The data validation error should(?) occur after a commit records script step, no? Best, Dave.

Posted

I'm confused as to what you are trapping for.

Since you are on a mac, Print the script to Preview and then just select it and copy it to a post.

Lee

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