Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Public xarr As Int = 3
Public yarr As Int = 3
Public TwoDArray(xarr, yarr) As String
End Sub
Sub Service_Create
'This is the program entry point.
'This is a good place to load resources that are not specific to a single activity.
For I = 0 To xarr - 1
TwoDArray(I, 0) = "N"
TwoDArray(I, 2) = "S"
Next
StarterLogTwoDArray
For I = 0 To yarr - 1
TwoDArray(0, I) = TwoDArray(0, I) & "W"
TwoDArray(2, I) = TwoDArray(2, I) & "E"
Next
StarterLogTwoDArray
End Sub
Sub StarterLogTwoDArray
Log("Starter: TwoDArray =")
For Y = 0 To 2
Dim LogLine As String = TwoDArray(0, Y)
For X = 1 To 2
LogLine = LogLine & ", " & TwoDArray(X, Y)
Next
Log(LogLine)
Next
End Sub