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

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

Recommended Posts

Posted

Hi All,

I would like to perform a find in a script then have the script go to a certain layout if any records are found or to a different layout if there are no records found.

How do I set this variable?

Thanks to All

Posted

You can use the error capture function to determine if there were no records found. Error 401 means there were no records found.

Set Error Capture [ On ]

Enter Find Mode [ ]

Set Field [ ]

Perform Find [ ]

If [ Get ( LastError ) = 401 ]

Go to Layout [ Layout1 ]

Else

Go to Layout [ Layout2 ]

End If

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