Jump to content
Server Maintenance This Week. ×

Status(CurrentError)


This topic is 8078 days old. Please don't post here. Open a new topic instead.

Recommended Posts

HI all -

I have a script that I want it to exit if the find does not find anything.

Here is the basics of my script:

Set Error Capture (on)

Show All Records

Go to Layout

Enter Find

(find criteria is entered here)

Perform Find

If (Status (currenterror) = 401

Exit Script

Else

Go to first record

(starts loop)

does loop stuff

go to next record (exit after last)

end loop

end if

exit script

The script is just going into the loop if the script does not find any matches - it is not exiting. What am I missing.

Also - just a side - can a Sort script step - make your loop go around in circles on the same record?

Thanks for the help

Link to comment
Share on other sites

This topic is 8078 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.