Unterschied CopyStructure zu Structure2 = Structure 1
Verfasst: 18.05.2013 21:31
Was ist der Unterschied, wenn ich in folgendem Code den Befehl CopyStructure gegen StudentCopy = Student austausche?
Danke
Josh
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