Results 1 to 2 of 2

Thread: control array and random #

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    1

    Question

    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?

  2. #2
    Guest
    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
  •  



Click Here to Expand Forum to Full Width