|
-
Nov 23rd, 2000, 03:18 PM
#1
Thread Starter
New Member
how can i get the winner of my a tic tac toe games? i'm using 9 lables on the game, so can i do something like:
If blah = "123" or 157" Then
Msgbox "Winner"
End If
But the question is, do I have to do and "If" statement for 123, 157, ect; to get the winner, or is there a quicker and shorter way?
-
Nov 23rd, 2000, 03:24 PM
#2
You can use either Select Case or If...Then.
How are you structuring your program? By Array?
Please elabourate on your code.
-
Nov 23rd, 2000, 03:32 PM
#3
Thread Starter
New Member
What I was going to do what put all of the winning lines in a list box:
123
157
147
213
ect;
then I was going to do a For..Next statement to see if any of lines would match an Label caption that would have the players moves in it... but I figuer this, if I could sort the numbers in the label caption (ex: 213 to 123) then I would use the If...Then.
-not all cops eat doughnuts and drink coffee... some of us like milk insted
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
|