How to test if five variables are the same number

pgben200
06-05-2005, 01:24 AM
Hi

my program im making is to display numbers in labels at random
i have five labels where the numbers are displayed and when i randomize the numbers i dont want any of the numbers to be the same how would i check that.

Because i only have two labels at the moment
and i use this code

if label1.caption = label2.caption then
randomizagain
End If

i would like to do that for five labels

Thanks

stevo
06-05-2005, 02:33 AM
Billsoo as a tutorial in tutors corner on non repeating random numbers.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum