Sub Process_Globals
Type JustName(n As String)
Type NameAndAge(n As String, a As Int)
End Sub
Sub AppStart (Args() As String)
Dim c1,c2,c3 As MyClass1
Log("C1 initialized = " & c1.isInitialized)
c1.Initialize(Null)
Log("C1 initialized = " & c1.isInitialized)
c2.Initialize(CreatejustName("fred"))
Log("C2 initialized = " & c2.isInitialized)
c3.Initialize(CreatenameAndAge("Mike",44))
Log("C3 initialized = " & c3.isInitialized)
End Sub
Public Sub CreatejustName (n As String) As JustName
Dim t1 As JustName
t1.Initialize
t1.n = n
Return t1
End Sub
Public Sub CreatenameAndAge (n As String, a As Int) As NameAndAge
Dim t1 As NameAndAge
t1.Initialize
t1.n = n
t1.a = a
Return t1
End Sub