Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is traditional, traditional?
Message
From
03/03/2004 01:02:44
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00881665
Message ID:
00882597
Views:
15
>Not quite - I was curious regarding your migration from ON ERROR to TRY/CATCH to manage project error services.

Project error services. I assume you mean a global error handler for an executable or com component?

Well, since an error and an exception are identical as far as your code is concerned, just replace the code that looks like this:
on error myHandler(error())

*** Application code with read events

on error 

function myHandler
lparameters tnError
do case 
     case tnError = 1705 && File Access denied
*** ect. ect.
endcase
return
with code that looks like this:
try 
   *** Application code with read events
catch to oExp for oExp.errorNo = 1705
   *** ect. ect.
endtry
Does that answer your question?
Previous
Reply
Map
View

Click here to load this message in the networking platform