Hello.
I am very new in vb4a and still didn't get the idea of how to create an array from labels in vb4a
can anyone please give me the solution to this ?
with buttons I use Sender to determine which button was clicked but how do I do this with labels?
in vb6 I created 4 labels and it assigned the index into it. label1(1), label1(2),label1(3) and label1(4) in the form.
so how do I do this in vb4a ?
i = Int(Rnd(1) * 4) + 1
Label1(i).Caption = "X"
THANKS
I am very new in vb4a and still didn't get the idea of how to create an array from labels in vb4a
can anyone please give me the solution to this ?
with buttons I use Sender to determine which button was clicked but how do I do this with labels?
in vb6 I created 4 labels and it assigned the index into it. label1(1), label1(2),label1(3) and label1(4) in the form.
so how do I do this in vb4a ?
i = Int(Rnd(1) * 4) + 1
Label1(i).Caption = "X"
THANKS