Arnaud,

Thank you, this led me to reinspect my code and I found a couple issues with 
the original code. The issue I was seeing was actually multiple issues 
compounded together that led me to think it didn’t work.

You are correct, using the current Method Name for an error handler does seem 
to work.

I still have to use a different method to handle the error because I get a 
-20002 (accessing a parameter that does not exist) error in compiled mode. I 
think this -20002 error is related to my usage of $0 in the normal context of 
this method ($0 is not used in the error handler context).  It looks like you 
also return a Boolean in $0 but you do not mention seeing the -20002 error; 
weird. Have you have provoked your error handler in compiled mode?

In either case, I have updated the code on the tech tip so it works in compiled 
mode now; using a separate method for the error handler.

-Tim




**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to