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

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

Recommended Posts

Posted

can i somehow prevent from dialogue boxes with the script? for example when in the find mode none record was found and there is a dialogue with three buttons and one of them is "cancel" but i don't want to have this button there because it stops the script. what can i do?

Posted

Use the Set Error Capture[On] script step at the begining of your script.

You can then check for errors by using Get(LastError)

Posted (edited)

Hi Genu,

Good answer :)

I would only add that [color:red] sju you should do a search of FileMaker's Online Help for [color:blue]Set Error Capture script step and [color:blue]Get(LastError) function and FileMaker provides a good explanation of this.

Basically, you will need to trap for the error code, and then tell FileMaker what you want it to do. Look at the [color:blue]Example script provided there, and a list Errors to trap for on the [color:red] Get(LastError) function page.

HTH

Lee

Edited by Guest

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