I have to assign random values (Location1 through Location16) to 16 Command Buttons.
I've done it with:
By the time I get to LOC16, the Loop While statement gets ridiculously long.
I'm rewriting this program and it's always struck me that there has to be a simpler/shorter way to get this done.
Does anyone know what it is?
Thanks in advance,
BoxHead
I've done it with:
Code:
Randomize
Do
LOC1 = Int((16 * Rnd) + 1)
Loop While LOC1 = ""
Do
LOC2 = Int((16 * Rnd) + 1)
Loop While LOC2 = LOC1 Or LOC2 = ""
Do
LOC3 = yada yada yada.
By the time I get to LOC16, the Loop While statement gets ridiculously long.
I'm rewriting this program and it's always struck me that there has to be a simpler/shorter way to get this done.
Does anyone know what it is?
Thanks in advance,
BoxHead