How to test if five variables are the same number

06-05-2005, 12:24 AM

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
End If

i would like to do that for five labels


06-05-2005, 01: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