Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class error handling
Message
 
To
19/01/2004 05:35:40
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00868040
Message ID:
00868055
Views:
18
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform