shalmorion
asked on
Problems with "On Error"
Hi!
I'm developing an application under Visual Basic 6.0 and I'm not able to manage errors. It seems that VB doesn't allows me to take control on errors.
I've tried with On Error Goto <name_of_label>, On Error Resume Next... but when an error occurs, the application stops showing the error.
For example, with this code:
-------------------------- ------
On Error Resume Next
Err.Raise cdlCancel
MsgBox "Error number: " & cdlCancel
-------------------------- ------
The application stops on the "err.raise" line (the same happens if I use a label to handle the error)
Can anybody help me?
Thanks!
I'm developing an application under Visual Basic 6.0 and I'm not able to manage errors. It seems that VB doesn't allows me to take control on errors.
I've tried with On Error Goto <name_of_label>, On Error Resume Next... but when an error occurs, the application stops showing the error.
For example, with this code:
--------------------------
On Error Resume Next
Err.Raise cdlCancel
MsgBox "Error number: " & cdlCancel
--------------------------
The application stops on the "err.raise" line (the same happens if I use a label to handle the error)
Can anybody help me?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER