Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing an error
Message
From
06/09/2000 15:03:15
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00413131
Message ID:
00413145
Views:
23
>I am trying to figure out how to trap an error in a class (error 3, file is in use), and then raise a custom error that gives the user a better explanation. I don't want to use a messagebox or anything like that. This is a business level class, and I really like to keep interface out of it if possible.

How about surpressing all errors, storeing the error number in a property (nError) and returning a .F., indicting failure.

Then the calling object should be able to tell that it failed, look at the public nError property and decide what it wants to do itself.

Will that work for you?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform