jhomer Posted April 6, 2005 Posted April 6, 2005 I have tried this function on several occations and each time i use it i get the same results. the problem: I like using custom dialog boxes to obtain find criteria from my users. i also like to display dialog boxes to help the user know whats going on. thus when a found count returns empty or 0 i want to display a message saying there are no matching records and to try the search again. ive tried using if get(foundcount) = 0 and get(foundcount)>1 (in this case i was looking for an exisiting occurance of a unique value) each time this function does not trigger the if statement and the script continues on. any ideas?
dkemme Posted April 6, 2005 Posted April 6, 2005 In what context are you using get ( foundcount )? Did you just complete a find? Are you in browse mode? Check your script by inserting a pause and make sure you have the above at the time you test.
jhomer Posted April 7, 2005 Author Posted April 7, 2005 sorry i phrased that question really poorly and also discovered a mistake (evaluating a calcualtion as text instead of numberic :-/ ). but what i am trying to do now is bypass the default dialog that tells you no matching records have been found. I want to be able to display my custom dialog instead. is this possible?
sbg2 Posted April 7, 2005 Posted April 7, 2005 Look for "Set Error Capture script step" in help, they show an example.
Recommended Posts
This topic is 7433 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