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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement