Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try...Catch...Endtry
Message
From
05/06/2003 15:03:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Try...Catch...Endtry
Miscellaneous
Thread ID:
00796898
Message ID:
00796898
Views:
50
I have just started using these and have to say I love them! What a great thing to add to the language. Why to go!

No more
lc_error = SET('ERROR')
ll_error = .f.
ON ERROR ll_error = .t.
*do something that might cause an error
IF ll_error
  * clean up
ENDIF

ON ERROR &lc_error.
Now it's
TRY
  * do something that might cause an error
CATCH
  * clean up
ENDTRY
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Next
Reply
Map
View

Click here to load this message in the networking platform