>Sorry about that folks...I managed to answer my own question..but it disturbs me. Why does this work ?
>
>LOCAL loErr
>
>loErr = this
>
>ON ERROR loErr.adoconnectionerror()
>
>and
>
>ON ERROR this.adoconnectionerror()
>
>not work.
>
>They should be the same thing.
Paul,
They are not the same thing. This is a relative reference to the current object in which the code is running, ON ERROR calls a procedure that is named on the line so the code is running outside of any object. In your other example you are first setting a variable to point to an object, then setting the ON ERROR which can see the variable (which is an absolute reference to an object not a relative one).