...
Type MyType(MyArray() As Int, AnotherVar As String)
....
Sub Activity_Resume
Dim poNew As MyType
Dim piIndex As Int
poNew.Initialize
Dim poTestArray(10) As Int
poNew.MyArray = poTestArray
Log("Length is: " & poNew.MyArray.Length)
For piIndex = 0 To poNew.MyArray.Length - 1
poNew.MyArray(piIndex) = piIndex
Next
Dim AnotherArray(20) As Int
poNew.MyArray = AnotherArray
Log("Length now is: " & poNew.MyArray.Length)
For piIndex = 0 To poNew.MyArray.Length - 1
poNew.MyArray(piIndex) = piIndex * 2
Next
End Sub