Ok, so I've never needed to do this before, and this particular project it seems like a good idea. So I'm trying it. I need an array of labels.
Right now, I have the following:
where lblP1....lblP8 are all on the form already. Wonderful.Code:Dim playerLabel() As Label = {lblP1, lblP2, lblP3, lblP4, lblP5, lblP6, lblP7, lblP8}
Except when I run a For Each l As Label In playerLabel a bit later on in the code, it blows up with 'Object reference not set to an instance of an object.'
Is there anything fancy that needs to happen that I'm unaware of with this procedure?




Reply With Quote