Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CATCH TO this.Something
Message
 
To
30/06/2003 07:10:26
Matthias Will
BiCON Systemtechnik GmbH
Karlsruhe, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00804645
Message ID:
00805228
Views:
30
I see it. Good luck.

>Hi Jozef,
>
>I agree that you could read in "stored into memory variable" that properties shouldn't be used. And catching the exception into a properties also works as expected. To make it clear : if an exception is caught in a method of an object to a property of the same object and this method is called from outside, all works as expected (like in your sample code) - the problem only occurs, if the catching method is called by another method of the same object which would catch the exception to the same property. Well, it is not a very important thing - but it felt very odd to me...
>
>Best Regards
>Matthias
>
>
>DEFINE CLASS test AS Custom
>oLastException = .NULL.
>
>PROCEDURE ThisDoesntWork
>TRY
>this.ThisWorks()
>CATCH TO this.oLastException
>ENDTRY
>ENDPROC
>
>PROCEDURE ThisWorks
>TRY
>fiji
>CATCH TO this.oLastException
>ENDTRY
>ENDPROC
>
>ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform