sju Posted August 28, 2006 Posted August 28, 2006 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?
Genx Posted August 28, 2006 Posted August 28, 2006 Use the Set Error Capture[On] script step at the begining of your script. You can then check for errors by using Get(LastError)
Lee Smith Posted August 28, 2006 Posted August 28, 2006 (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 August 28, 2006 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now