Sub Globals
...
Private targetList(10) As Panel
End Sub
Sub generateTargetMatrix(noOfTargets As Int)
...
Dim targetCounter As Int
targetCounter = 1
For y = 1 To rowCount
For x = 1 To rowCount
targetList.(targetCounter).Initialize("targetMulti") <<<< ERROR line 356
targetList.(targetCounter).Color = Colors.ARGB(255,102,102,102)
targetList.(targetCounter).Enabled = False
targetList.(targetCounter).Elevation = 10dip
pnlGame.AddView(targetList.(targetCounter), (x * gutterWidth) + ((x - 1) * targetWidth), offsetTop + ((y - 1) * (targetWidth + gutterWidth)), targetWidth, targetWidth)
targetCounter = targetCounter + 1
Next
Next
End Sub