I am trying to write a seemingly simple program. However when i was createing the array in a class called "Levels" I was unable to use the data in Class "form1" how would i transport the data from "Levels" to "Form1"
Here is a sample of what i have:
Public Class Levels
Public Shared Sub createBlackArray()
Dim blackArray(299,3)
blackArray(0,0) = 0
blackArray(0,1) = 0
blackArray(0,2) = 0
blackArray(1,0) = 0
blackArray(1,1) = 40
blackArray(1,2) = 1
End Sub
Shared Sub createGreenArray()
MsgBox("createGreenArray")
End Sub
Shared Sub createBlueArray()
MsgBox("createBlueArray")
End Sub
End Class
from the MsgBox's i can see that i am able to access the class and sub's however i am not able to get the data to translate to the original class "Form1".
Here is a sample of what i have:
Public Class Levels
Public Shared Sub createBlackArray()
Dim blackArray(299,3)
blackArray(0,0) = 0
blackArray(0,1) = 0
blackArray(0,2) = 0
blackArray(1,0) = 0
blackArray(1,1) = 40
blackArray(1,2) = 1
End Sub
Shared Sub createGreenArray()
MsgBox("createGreenArray")
End Sub
Shared Sub createBlueArray()
MsgBox("createBlueArray")
End Sub
End Class
from the MsgBox's i can see that i am able to access the class and sub's however i am not able to get the data to translate to the original class "Form1".