Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SERIOUS BUG: incorrect errors code
Message
 
 
To
18/06/2005 06:10:07
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01024573
Message ID:
01024616
Views:
19
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform