Code: Alles auswählen
Structure People
Name$
LastName$
Map Friends$()
Age.l
EndStructure
Define Student.People
Define StudentCopy.People
Student\Name$ = "Paul"
Student\LastName$ = "Morito"
Student\Friends$("Tom") = "Jones"
Student\Friends$("Jim") = "Doe"
CopyStructure (@Student, @StudentCopy, People)
;StudentCopy = Student
Student\Friends$("Tom") = "Jones++++++++"
Debug StudentCopy\Name$
Debug StudentCopy\LastName$
Debug StudentCopy\Friends$("Tom")
Debug StudentCopy\Friends$("Jim")
Debug ""
ForEach Student\Friends$()
Debug Student\Friends$()
Next
Debug ""
ForEach StudentCopy\Friends$()
Debug StudentCopy\Friends$()
Next
Debug ""
Josh