|
-
Sep 13th, 2010, 09:55 PM
#1
Thread Starter
New Member
[RESOLVED] how to output multiple checkboxes to same line in listbox?
I'm trying to make a lotto 649 program. There are 49 checkboxes for the user to select numbers to make a ticket. When the user hits the submit button, the program should output the six numbers to the same line in a listbox. How do you do this? For example, if the user decides to purchase two tickets, I'd like the output of the listbox to look like this:
1) 4, 49, 24, 22, 30, 9
2) 47, 32, 30, 3, 1, 5
Code:
Private Sub cmdSubmit_Click()
Static t As Integer
t = t + 1
For i = 0 To 6
If optNum(i).Value = 1 Then
List1.AddItem t & ") " & optNum(i).Caption
End If
Next
End Sub
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
|