Type person (name As String, lastname As String)
Sub Main
Dim listofpeople() As person
Listofperson=AddPerson(listofpeople,"John","Do")
Listofperson=AddPerson(listofpeople,"Jack","Screamer")
End Sub
Sub AddPerson(ArrPeople() As Person, name As String, lastname As String) As Person()
Dim ArrP(ArrPeople.Size+1) As Person
Dim P As Person
P.Initialize
P.name=name
P.lastname=lastname
For i=0 to ArrPeople.size-1
ArrP(i)=ArrPeople(i)
Next
ArrP(ArrPeople.size)= P
Return ArrP
End Sub