Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21297

[RESOLVED] Loop through a listbox and copy the item to a label caption.

$
0
0
Hello there! I have a program that has a bunch of math questions in. The questions load into a listbox called GameList

I also have an array of 75, 0-74 labels called GameNameLBL(0) all the way to 74.

Thanks to you guy I can click on a item in the listbox and copy the item over by going GameNameLBL.Caption = GameList.List(GameList.ListIndex), but I was wondering if there was a way to loop through the list so the first item in the listbox goes in the GameNameLBL(0), the second item goes in GameNameLBL(1), etc.


Would anyone know how to set up a loop for this? Thanks!!!

Viewing all articles
Browse latest Browse all 21297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>