Computer Science Canada

a little help with a for loop

Author:  Drewbie [ Sat Jan 27, 2007 1:25 am ]
Post subject:  a little help with a for loop

im tyring to get this loop to work but cant quite figure it out

Dim i As Integer
For i = 1 To 6
Label(i).Caption = Int(Rnd * 10 + 1)
Next

what i want it to do i to cycle threw the labels on my form and generate a number in each one
but i dont know how to get it to switch from label to label

Author:  cool dude [ Sat Jan 27, 2007 11:29 am ]
Post subject:  Re: a little help with a for loop

Please do not post the same thing twice. I have answered your question already in your other post.

Author:  Drewbie [ Sat Jan 27, 2007 3:41 pm ]
Post subject:  Re: a little help with a for loop

yah, sorry about that. its weird because i posted this thread before the other one but it didnt go threw when i went to look for it amongst all the other postings. so i posted agian right after at 9:22 pm and this one didnt go up until 1:25 am the next day.


: