Mar 9, 2001 #1 wassup Technical User Oct 3, 2000 52 GB I have 7 variables RiderClub1 to RiderClub7 How do I check if more than 2 of the variables are the same? Thanks in advance for your help
I have 7 variables RiderClub1 to RiderClub7 How do I check if more than 2 of the variables are the same? Thanks in advance for your help
Mar 10, 2001 #2 hblackorby Programmer Feb 13, 2001 164 US Try this: double = false dim ary(7) ary(0) = RiderClub1 ary(1) = RiderClub2 ...etc. do for all of them j = 1 while not j >= 7 if ary(j-1) = ary(j) then double = true end if wend at the end of this, if double is true, then you know that one equaled the other. Hope that helps. Harold Blackorby hblackorby@scoreinteractive.com St. Louis, MO Upvote 0 Downvote
Try this: double = false dim ary(7) ary(0) = RiderClub1 ary(1) = RiderClub2 ...etc. do for all of them j = 1 while not j >= 7 if ary(j-1) = ary(j) then double = true end if wend at the end of this, if double is true, then you know that one equaled the other. Hope that helps. Harold Blackorby hblackorby@scoreinteractive.com St. Louis, MO