|
-
Jul 12th, 2000, 11:21 AM
#1
Thread Starter
New Member
I have a cmdSpin command button to calculate three random # from 1 to 7. Also, there is a frame with three options for your wager of $1.00, $5.00, and $10.00.
2 Labels - Current Winnings and Total Winnings
There are 3 text boxes in an array txt(0), txt(1), txt(2) where the random numbers are sent to with print.
How do I get the wager amount to calculate with a spin?
-
Jul 12th, 2000, 11:27 AM
#2
You want to check if either $1, $5, or $10 is selected? Assuming the names of your OptionButtons are opt1, for $1, opt5 for $5, and opt10 for $10.
Code:
If opt1.Value = True Then
'$1.00 is wagered
ElseIf opt5.Value = True Then
'$5.00 is wagered
Else
'$10.00 is wagered
End If
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
|