Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 a little help with a for loop
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Drewbie




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
cool dude




PostPosted: 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.
Drewbie




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: