![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I will commonly start a script with Set Error Capture [On] to avoid error messages if there is a possibility that a Find will return an empty found set. I have always added a Set Error Capture [Off] step at the end of such a script. While not explicitly saying so, FileMaker Help seems to suggest that the [On] step would be valid only for the running script, in the step Description: "Sends error handling information to the Get(LastError) function after a FileMaker Pro script is running." Thus the question: Does it stay [On] until you shut it off, or does it have to be set [On] for every script (which would include subs)? Seems to me it should be the latter, because if it stayed [On], one could easily lose track of where it was turned [On]. Matt |
#3
| |||
| |||
|
|
Stays on while that script is running, which would include any subscripts that run under it. Matt Wills wrote: I will commonly start a script with Set Error Capture [On] to avoid error messages if there is a possibility that a Find will return an empty found set. I have always added a Set Error Capture [Off] step at the end of such a script. While not explicitly saying so, FileMaker Help seems to suggest that the [On] step would be valid only for the running script, in the step Description: "Sends error handling information to the Get(LastError) function after a FileMaker Pro script is running." Thus the question: Does it stay [On] until you shut it off, or does it have to be set [On] for every script (which would include subs)? Seems to me it should be the latter, because if it stayed [On], one could easily lose track of where it was turned [On]. Matt |
![]() |
| Thread Tools | |
| Display Modes | |
| |