Change Array variable from other class then it's 'creator' [RESOLVED]
Hi everyone,
Another question by me ;)!
Next problem I encounter is this one:
I create an array of an class, called Pion, like this:
VB Code:
Friend pioPion(30) As Pion
And give it it's values like this:
VB Code:
Private Sub cmdTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdTest.Click
Dim iLoop As Integer
Dim iX As Integer = 0
Dim iY As Integer = 0
For iLoop = 0 To 29
Dim testPion As New Pion(iLoop, 0, "Blue")
pioPion(iLoop) = testPion
pioPion(iLoop).SetCoordinates(iX, iY)
If iX = 9 Then
iY += 1
iX = 0
Else
iX += 1
End If
Next
End Sub
But i want this not in my frmMain Code but in a other class.... Is this possible? Hope you get what I mean... if not just ask for clarification!
Grtz,
Bloged