Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When is traditional, traditional?
Message
De
03/03/2004 01:02:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00881665
Message ID:
00882597
Vues:
16
>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform