set therecord to {{A:1}, {A:1}}
set A of item 2 of therecord to 6
return therecord
--result {{A:1}, {A:6}}
This doesn't
set therecord to {A:1}
set thenewrecord to {}
set end of thenewrecord to therecord
set end of thenewrecord to therecord
set A of item 2 of thenewrecord to 6
return thenewrecord
--result {{A:6}, {A:6}}
Any ideas what is going on here?
Thanks
set arecord to {A:1}
set therecord to {}
copy arecord to end of therecord
copy arecord to end of therecord
return therecord
and
set arecord to {A:1}
set therecord to {}
set the end of therecord to arecord
set the end of therecord to arecord
return therecord