|
-
Apr 19th, 2007, 11:51 AM
#2
Thread Starter
Lively Member
Re: "On Error goto" help
 Originally Posted by kingzl3y
well, im creating a tool.
And i've implemented some Error tools (On error goto..and what not)
but i have a problem, If an error occours i want to show a msgbox - once that msgbox has been clicked it then exits the sub
I've tried numerous ammount of ways all fail on me
Someone please enlighten me! pls x[
e.g.
vb Code:
Private Sub cmd1_Click()
On Error GoTo 321
Timer1.Interval = txtTimer.Text
On Error GoTo 123
Timer1.Enabled = True 'Start sending messages
123:
MsgBox "Error123", vbInformation
[B]exit sub[/B]
321:
MsgBox "Error321", vbInformation
End Sub
*Note to self*
bold tags in vbcode do NOT work.
Kankerflecken. 
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
|