Sorry Fred, but like Set FIeld and many other script steps, Set Next Serial Value was never intended for indirect reference. This is "as Designed" (I am predicting the official response). And many, many script steps do not interrupt a script with an error message when they generate an error code. This is not how I would prefer it (silent fails) either, but it's what we have to work with at the moment.
I've suggested previously via the feature request form that FileMaker needs to review and update their script error handling so that:
- Error codes are not generated when there is no functional error condition such as go to record [next ; exit after last]
- All errors interrupt the script with a message and with identical options in all cases.
- All error messages then should be supressable via Set Error Capture [on]
- A script trigger, OnScriptError (ScriptName ) with a ResumeNext option should be added so that we can add a generic error handler script instead of testing for error codes after each and every script step that might possibly generate an error.
Thank you Phil.
I can perfectly understand your answer (and probable FMI answer).
But maybe, i was perturbated by the check box of the script step option than generally suggest that it is a choice, and the fact you can leave it empty, expecting a possible execution as is.