Changing array key text
Mark Wieder
ahsoftware at sonic.net
Mon Jun 24 22:10:34 EDT 2019
On 6/24/19 7:00 PM, Brian Milby via use-livecode wrote:
> Close, here's the actual code (part of setArrayKeyOnPath):
>
> put xArray[item 1 of pPath] into tSubArray
> delete variable xArray[item 1 of pPath]
> put tSubArray into xArray[pKey]
Interesting. Wouldn't it be faster to do
put xArray[item 1 of pPath] into xArray[pKey]
delete variable xArray[item 1 of pPath]
i.e., why the extra copy?
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list