G
gerryR
Hi All
I have an app that has 64 labels and an array with 64 members. I'm using a
ranom generator to pick a number and put it in the array but then I need to
alter the text of the corresponding label.
So far I've been unable to get the correct label selected based on the
number generated. I'm new to programming so apologies if this is a simple
task, I'd appreciatea point in the right direction.
e.g. of what I'm trying to do:
Dim var1, var2, var3 As Label
Dim i As Short = CInt(Int((4 * Rnd()) + 1))
var(i).Text = "X"
Is this possible to get this working?
TIA
gr
I have an app that has 64 labels and an array with 64 members. I'm using a
ranom generator to pick a number and put it in the array but then I need to
alter the text of the corresponding label.
So far I've been unable to get the correct label selected based on the
number generated. I'm new to programming so apologies if this is a simple
task, I'd appreciatea point in the right direction.
e.g. of what I'm trying to do:
Dim var1, var2, var3 As Label
Dim i As Short = CInt(Int((4 * Rnd()) + 1))
var(i).Text = "X"
Is this possible to get this working?
TIA
gr