|
-
May 18th, 2001, 08:55 AM
#1
Thread Starter
Lively Member
Help ! Code runs 10 times automatically !
I get "You Have Reached 10 tries" immediately after clicking the command button. How can I change the code so that I can click on the button at least 10 times?
Private Sub Command1_Click()
Counter = 0
Do While Counter < 10
Label1.Caption = Rnd
Label2.Caption = Rnd
If Label1.Caption = Label2.Caption Then
MsgBox "Numbers Identical !"
End If
Counter = Counter + 1
Loop
MsgBox "You Have Reached 10 tries"
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
|