ON ERROR MyErrorHandler()
or
ON ERROR DO MyErrorHandler
or
ON ERROR goObject.CustomErrorHandler()
** where goObject is a PUBLIC instance of a class.
You could also use the Error() event on an object. Bear in mind that anycode in the Error() event takes precedence over any existing ON ERROR instructions.
>What is the correct syntax for calling a method from the ON ERROR command? If this is not possible please advise.
Insanity: Doing the same thing over and over and expecting different results.