|
-
Aug 5th, 2000, 04:50 PM
#1
Thread Starter
Addicted Member
no matter what i do in my project, On Error Goto ######, On Error Resume Next, it doesnt work. I don't Understand why it wont, some of my prjects do work while others, when given an On Error statement, still error..... Any clue?
-
Aug 5th, 2000, 05:14 PM
#2
transcendental analytic
You should post your code, errors could still appear if you don't have your errohandling set correctly
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 5th, 2000, 06:55 PM
#3
Make sure that you have your On Error Resume Next statement before the line where the Error occurs. The best place to put it would be at the top.
-
Aug 5th, 2000, 09:10 PM
#4
A little example on ignoring the error would be:
Code:
Private Sub Form_Load()
On Error Resume Next
For i = 0 to 100
Error i
Next i
'Sorry, didn't know what error to choose :p.
Exit Sub
End Sub
And if you were to capture it:
Code:
Private Sub Form_Load()
On Error GoTo ErrorTrap
For i = 0 To 100
Error i
Next i
Exit Sub
ErrorTrap:
MsgBox "Error " & Err.Number & " - " & Error$
End Sub
Hope that helps.
-
Aug 7th, 2000, 02:01 AM
#5
Well ....
Maybe I am being too foolish, but Smie, just go to Project > Properties and on the General tab, see whether Break on All Errors is selected. If it is, change it to Break on Unhandled Errors.
And if you have already done it and still are having problems, listen to the Gurus instead of me!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|