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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only