Newbies fish Posted March 2, 2004 Newbies Posted March 2, 2004 Here is my situation: I have a script that goes to a layout and enters find mode. I have set error capture on, and any result that is not "0" should cause a return to the original layout with a general error message. However, one of the fields is from a related database and is a numeric field and is set to not allow an empty field. If I try to use a "*" to search fory any entry, I just get an error that data needs to be entered here (this does not happen if it is left blank in find mode, which is ok). My script cannot continue to the original layout because invalid data is entered here. I would like to be able to return to the original layout in the case of ANY error. Thanks for any help.
CyborgSam Posted March 10, 2004 Posted March 10, 2004 * doesn't work in number fields, use = (empty) and Show Omitted. Here's the bare script steps: Enter Find Mode Insert Text [select, "myNumberField", "="] Perform Find [Replace Found Set] Show Omitted
CyborgSam Posted March 10, 2004 Posted March 10, 2004 Forgot this, put after Show Omitted: If ["Status(CurrentFoundCount) <> 0"] ... do your thing to point out error Else ... do whatever comes next if all OK End If
Recommended Posts
This topic is 7563 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