|
-
Jun 16th, 2010, 02:24 AM
#1
Thread Starter
Member
[RESOLVED] Help in Listbox
Hi all,
I wanted to construct a stop button to stop or interrupt the program from executing.
Code:
Option Explicit
Private Sub Write_Text(ByVal A, ByVal B, ByVal C)
List1.AddItem A & " | " & B & " | " & C & vbCrLf
End Sub
Private Sub Run_Button_Click()
Write_Text "A1", 1, 1
Write_Text "A2", 2, 2
Write_Text "A3", 3, 3
End Sub
In the Run_Button_Click, there r a lot of write_text
e.g. Write_Text "A1", 1, 1
Write_Text "A2", 2, 2
Write_Text "A3", 3, 3
:
:
Write_Text "A100", 100, 100
So when I click the stop button when the program executing Write_Text "A10", 10, 10 . It will stop and not execute Write_Text "A11", 11, 11
'*********************************************************
Need advise from someone.
Regards,
Kent
Last edited by kent5244; Jun 16th, 2010 at 02:55 AM.
Reason: Question 1 solved
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
|