General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only