VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A better way to use exception handling to view what errors are possible in Visual Basic, each error

by Brandon (46 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 4th May 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

A better way to use exception handling to view what errors are possible in Visual Basic, each error number will allow to you view its error

Rate A better way to use exception handling to view what errors are possible in Visual Basic, each error




Private Sub Command1_Click()
On Error GoTo Exception:
ErrorNumber = InputBox("Enter the number for the error you wish to view", "Error Number")
Err.Raise (ErrorNumber)
Exception:
    MsgBox Err.Description
End Sub


Download this snippet    Add to My Saved Code

A better way to use exception handling to view what errors are possible in Visual Basic, each error Comments

No comments have been posted about A better way to use exception handling to view what errors are possible in Visual Basic, each error. Why not be the first to post a comment about A better way to use exception handling to view what errors are possible in Visual Basic, each error.

Post your comment

Subject:
Message:
0/1000 characters