Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CATCH TO this.Something
Message
 
À
30/06/2003 07:10:26
Matthias Will
BiCON Systemtechnik GmbH
Karlsruhe, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00804645
Message ID:
00805228
Vues:
29
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
Fil
Voir

Click here to load this message in the networking platform