dbTalk Databases Forums  

Error Capture

comp.databases.filemaker comp.databases.filemaker


Discuss Error Capture in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matt Wills
 
Posts: n/a

Default Error Capture - 09-11-2005 , 03:34 PM






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

Reply With Quote
  #2  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Error Capture - 09-11-2005 , 03:53 PM






Stays on while that script is running, which would include any
subscripts that run under it.

Matt Wills wrote:
Quote:
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
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #3  
Old   
Matt Wills
 
Posts: n/a

Default Re: Error Capture - 09-11-2005 , 03:58 PM



That's what I thought it should be.

Thanks.

Matt

Howard Schlossberg wrote on (9/11/2005):

Quote:
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


--



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.