If you have an error that I did not define a handler for, then it falls through to a general handler that displays the error to the user and asks the user what to do - Abort (exit routine), Retry (go back to the statement that generated the error) or Ignore the error (move on to the next statement). VbAbortRetryIgnore Or vbDefaultButton2 Or vbIconExclamation, "Form.Sample") ' Specific cases could be put here to handle specific errors. ' Do whatever is needed for main operation. Function Sample(intValue As Integer) As Integer In my VB6 code, which I have been using up till now to support a nearly-decade old legacy application, I would often use a fairly consistant error handling block. ![]() Net, which I admit is very similar to the exception handling of C++, so it is not all that unfamiliar. I have recently started coding in VB.Net and started using the Try-Catch style of exception handling available in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |