I'm trying to add data to some listboxes that were created on the fly. Each listbox was named "lstPL" & intPlayers in a loop. I can't figure out how to reference these listboxes in a loop later on.
The portion "lstPL(intPlayers)" is incorrect. How do I do this?
The portion "lstPL(intPlayers)" is incorrect. How do I do this?
Code:
While intDealCard <= 51
lstPL(intPlayers).Items.Add(DealCards.ShuffleCards(intDealCard).numbers _
& DealCards.ShuffleCards(intDealCard).suit)
intDealCard += 1
EndWhile