For example I set array 'a' content same as 'b' and I know a := b or a := object(&b) do not overwrite old content but assign new address and old array still exist in memory. What I need is something like in 2nd example. So my question is here simpler method to do that? Erase array and refill it via loops take too much time.
Code: Select all
a := {1:"aaa"}
c := a
b := {1:"bbb"}
a := b
msgbox,% a.1 "`n" b.1 "`n" c.1 ; bbb / bbb / aaa
Code: Select all
a := {1:"aaa"}
c := a
b := {1:"bbb"}
a.Delete(a.MinIndex(),a.MaxIndex())
for k,v in b
a[k] := v
msgbox,% a.1 "`n" b.1 "`n" c.1 ; bbb / bbb / bbb
Thenaks.