samshem Posted March 31, 2005 Posted March 31, 2005 I am using the "Perform Find" step in one of my scripts and my question is how to get it to not display the window saying that no records were found and just continue on with a result of zero. The "Perform Find" step is used multiple times in my script and if one of the find requests turns up with nothing, it messes up the rest of the script. Thanks for any help that you can provide!
DykstrL Posted March 31, 2005 Posted March 31, 2005 Set error capture[on] at the beginning of your script will do it.
stanley Posted April 1, 2005 Posted April 1, 2005 Samshem: You can also provide the users with a customized error message if nothing is found via something like: If [Get(FoundCount)=0] Show Message ("No records were found") End If -Stanley
samshem Posted April 1, 2005 Author Posted April 1, 2005 Thank you both for your replys. Stanley, I did incorporate a that into the script somewhat. What the script does is does searches for open orders that have not shipped yet and then pastes the results for each product in a "Open Order Summary" page. The problem was, if there was a result of 0, I would get the no records found message popping up and it would then affect the rest of the script. Then, when I put the Error Capture line in the script, it was continuing like I wanted it to, however, if the result was 0, it would not copy and paste "0", instead, it would paste the last positive number it copied. I probably made it sound much more confusing that it is, but basiclly, I now have it set up as "If [Get(FoundCount)=0] Set Field [field name;"0"]. Anyway, thanks for your help.
Recommended Posts
This topic is 7179 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