Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Validation

Status
Not open for further replies.

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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top