Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class error handling
Message
 
To
19/01/2004 05:01:48
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00868040
Message ID:
00868041
Views:
16
>I have a utility class and I want to isolate class specific errors.
>There is a way to, if an error occurs, to stop method code execution, write error
>info in a class text property and then return .F. to calling program/form ?
>I don't want to stop entire application or write into a error log, just stop and
>report error information in that text property.
>
>Is possible soemthing like this? (VFP 7)

I think you could probably handle this with code in your class objects' Error methods. Do you need more specific information than this?

Update: You might also need RETURN TO PROGRAM(n) at the end of the Error method, "n" being dependent on how many layers you need to go back to get to the right place.
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