Page 1 of 1

CopyList()

Posted: Sun Sep 20, 2015 9:39 pm
by kpeters58
Today I would have liked for CopyList() to assume

Destination Structure = Source Structure

rather than telling me that Destination didn't have a structure

Re: CopyList()

Posted: Sun Sep 20, 2015 9:44 pm
by GPI
I don't understand your problem.
This:

Code: Select all

Structure test
  a.a
  b.b
EndStructure

NewList List1.test()
NewList List2.test()

AddElement(list1())
list1()\a=1
list1()\b=1

CopyList(list1(),list2())

ForEach list2()
  Debug Str(list2()\a)+" "+Str(list2()\b)
Next
works fine here (PB5.40b6)
CopyList doesn't create a list!