Link to home
Start Free TrialLog in
Avatar of shalmorion
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!
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shalmorion
shalmorion

ASKER

Thanks a lot, TimCottee!!! I didn't knew this option.