Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Check if specified record exists (in script)


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

Recommended Posts

Posted

I am working in a script and want to find a record whose field equals a certain value. How can I view the results of this search and determine if there were results at all from within a script?

Would I have to enter find mode, etc.?

Posted

Check out "Error Capture".

Basically when you instigate error capture (Scrip step: Set Error Capture [ON]) then you can catch the error number generated on the following line of your script with a conditional (If/EndIF) using the GetLastError function in your calculation.

There's a full list of error codes in the online help system.

Posted

Here's a simple find script that MAY answer your question. Change it anyway you want. Notice the Set Field Command. That's where you enter your criteria.

HTH

Al

Sorry, I attached the wrong script and I can not get connected to the download site to change it. I'll do so as soon as I can.

OK. This is the correct one.

HTH

Simple_find_script.pdf

This topic is 6671 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.