Delete the first entry of an array.

Kay C Lan lan.kc.macmail at gmail.com
Fri Mar 25 05:22:32 EDT 2016


On Fri, Mar 25, 2016 at 3:33 PM, Peter W A Wood <peterwawood at gmail.com> wrote:

>   delete pList[“numbers”] 1                                     ## Is this the correct syntax?

No. Shouldn't it be:

delete variable pList["number"][1]

At least that works for me, although in your case I think, if I
understand it correctly, I'd tackle the problem by: (suedo-code)

repeat with x = 2 to the number of keys in firstArray
  put firstArray[x] into secondArray[x - 1]
end repeat
put secondArray into firstArray




More information about the use-livecode mailing list