Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY CATCH bug using m. with exception object?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00822427
Message ID:
00822433
Vues:
15
>Using the following triggers a VFP error.
>I receive the message box from ERROR 2058.
>I can avoid it by using "loException" instead of "m.loException".
>Is this a bug?
>
>
>LOCAL lcAssignTo
>LOCAL lcTest
>LOCAL loException AS Exception
>
>* Triggers an error no. 2058 - because first CATCH statement handles?
>m.lcTest = ""
>* Uncomment this to NOT trigger the error - because second CATCH statement handles?
>*m.lcTest = "something"
>
>TRY
>    m.lcAssignTo = m.undefined
>CATCH TO m.loException WHEN EMPTY( m.lcTest )
>    ? loException.Message
>CATCH TO m.loException
>   ? loException.Message
>ENDTRY
This was posted earlier by Spencer Redfield. See Try/Catch/Finally/Endtry mismatch, error #2058 Thread #811323 Message #811323.
censored.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform