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

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

Recommended Posts

Posted

How can I invoke a script within a script after a found set is empty...?

 

Much thanks all!

 

L~

Posted

Put your regular script here and then your find process and then ...

 

... error trap so you can handle it yourself if no records are found

Set Error Capture [ On ]

If [ not Get ( FoundCount ) ]  

Show Custom Dialog [ "No records found" ]

# put whatever steps to take if no records are found here such as the following

Show All Records ... returns the record set from 0 records to all before you leave

Go To Layout [ original layout ]

Exit Script

End If

... continue your regular script here knowing that records have been found so you can continue.

 

Or, within the If[], just add a sub-script of your find script. 

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