|
-
Oct 30th, 2002, 05:48 PM
#1
Thread Starter
Addicted Member
Errors
I know about On Error Resume Next and On Error Goto ... But I was wondering if could do something like On Error Exit Sub or On Error Then ....
Can what I'm asking be done?
-
Oct 30th, 2002, 05:51 PM
#2
Fanatic Member
Re: Errors
Originally posted by Xerpher
I know about On Error Resume Next and On Error Goto ... But I was wondering if could do something like On Error Exit Sub or On Error Then ....
Can what I'm asking be done?
What would be the use of that?
VB Code:
Private Sub Form_Click()
On error goto line1:
'CODE
'CODE
line1:
End sub
And
VB Code:
Private Sub Form_Click()
On error goto line1:
'CODE
'CODE
Exit sub
line1:
'CODE
'CODE
End sub
"A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
"First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
- Robert Matthews, Science Correspondent
-
Oct 30th, 2002, 05:51 PM
#3
Member
What exactly do you want it to do when it faults?
-
Oct 30th, 2002, 06:27 PM
#4
Thread Starter
Addicted Member
I was kinda thinking of having something like
On Error Then MsgBox "Error"
You know what I mean? but I guess I'll just have to use the goto... I was just curious, Thanks you guys.
-
Oct 30th, 2002, 06:36 PM
#5
Fanatic Member
Re: Re: Errors
VB Code:
Private Sub Form_Click()
On error goto line1:
'CODE
'CODE
Exit sub
line1:
'CODE
Msgbox "Error"
End sub
"A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
"First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
- Robert Matthews, Science Correspondent
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
|