Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling in VCX
Message
 
To
30/01/2002 05:20:34
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00612641
Message ID:
00612654
Views:
23
>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).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform