Dear all,
I am new to VB6. I have write the following code
Sub btn_click()
on error goto errhandler
debug.print error.count
errhandler:
....
End Sub
When the program go to debug.print error.count. VB prompts
error 424 "object required"
What should I do to let the program run normally. I have try
to dim error as new Errobject.
But it does not work. Or should I add reference (that is for error) to
the project? Please help.
Thanks.
I am new to VB6. I have write the following code
Sub btn_click()
on error goto errhandler
debug.print error.count
errhandler:
....
End Sub
When the program go to debug.print error.count. VB prompts
error 424 "object required"
What should I do to let the program run normally. I have try
to dim error as new Errobject.
But it does not work. Or should I add reference (that is for error) to
the project? Please help.
Thanks.
Comment