Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class error handling
Message
 
À
19/01/2004 05:35:40
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00868040
Message ID:
00868055
Vues:
19
>Maybe I can check for a combination of .ErrorCode (set in Error method) and RETURN TO ...
>In Error method code RETURN TO PROGRAM( ... )
>and in calling code :
>IF UtilityClass.SomeMethod() = .T. and UtilityClass.ErrorCode = 0   &&OK
>ELSE
>    *check for error code and info
>ENDIF
>But this leads to another question, how to return (even .T.) to calling program?
>I know that exists PROGRAM(), SYS(16) functions, but is possible to be used in such a scenario?

As far as I know, you can't return it this way -- but you provide a possible answer above, where you check the UtilityClass.ErrorCode. If you have this, do you really need to know the return value of the function?
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform