Jason Goldsmith Posted May 11, 2006 Posted May 11, 2006 I'm scripting a find using Perform Find. If no records are found, I get the following dialog box: "No records match this set of find requests" followed by Cancel, Continue, and Modify Find buttons. I would like to have a custom dialog box appear which says, "No records found", and the script then stops. I don't like the standard dialog box above, primarily because if the user selects cancel, the script stops at a bad step in my particular script, and if they select continue they end up in the wrong layout. I have tried: Perform find If (Get (found count) = 0) Show custom dialog ["No records found"] Halt script End if But I still get the above dialog box if the Perform find comes up with an empty set. Any suggestions would be greatly appreciated. Thanks.
Lee Smith Posted May 11, 2006 Posted May 11, 2006 We just answered this question two days ago, Click Here to see You need to use the script step [color:blue]Set Error Capture On and trap for the error [color:blue]401 HTH Lee
Recommended Posts
This topic is 7119 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