Results 1 to 15 of 15

Thread: Looping to see if something = something(resolved)

Threaded View

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Resolved Looping to see if something = something(resolved)

    Hello, I'm working on a concentration game, and i'm trying to make the function that will tell if the user matches the flags or does not. So far, I've got it can only tell if they do not match them, but in my loop, it will only work if they click a 3, then a 4. It won't work if they click a 4, and then a 3.

    Code:
    VB Code:
    1. Dim i As Integer
    2.     clickcount = clickcount + 1
    3.     lblCover(Index).Visible = False
    4.     For i = 0 To 15
    5.         If lblCover(i).Visible = False Then
    6.             If clickcount = 2 Then
    7.                 picSecond.Picture = imgPicture(i).Picture
    8.             Else
    9.                 picFirst.Picture = imgPicture(i).Picture
    10.             End If
    11.         End If
    12.     Next i
    13.    
    14.     Call CheckMatch
    Last edited by paralinx; Oct 1st, 2005 at 08:35 PM.

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