Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SERIOUS BUG: incorrect errors code
Message
 
 
À
18/06/2005 06:10:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01024573
Message ID:
01024616
Vues:
21
Fabio,

It works fine if you use it properly
TRY
  THROW
CATCH TO oExp
  ? "EXPECTED 2071 ", "Observed ", oExp.ErrorNo
  ? "EXPECTED User Thrown Error  ", ;
  		"Observed ", oExp.Message
ENDTRY
>
>CLEAR
>ON ERROR
>TRY
>  THROW
>CATCH
>  ? "EXPECTED 2071 ", "Observed a none error", ERROR()
>  ? "EXPECTED User Thrown Error  ", "Observed a funny message",MESSAGE()
>  =AERROR(aw)	
>  ? "EXPECTED 2071 ", "Observed a bad code",aw(1)
>  ? "EXPECTED User Thrown Error  ", "Observed a funny message",aw(2)
>  ? "***** next is ok "
>  ? aw(3)
>ENDTRY
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform