dbanbury Posted June 6, 2006 Posted June 6, 2006 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.
Lee Smith Posted June 6, 2006 Posted June 6, 2006 (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 June 6, 2006 by Guest
dbanbury Posted June 6, 2006 Author Posted June 6, 2006 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.
Lee Smith Posted June 6, 2006 Posted June 6, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now