pgben200

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

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