Arrays: new and old keys, i

David Bovill david at vaudevillecourt.tv
Sun Sep 14 15:38:59 EDT 2008


Mark you lost me on this thread somewhere:

2008/9/14 Mark Brownell <gizmotron at earthlink.net>

> We can have both worlds right now. If you need sorted and unsorted keys &
> order of entry per dimensional layer or not all you need do is add layer [9]
> assuming you will never need layer 9.


Sorry what's layer 9?


> ">set the sortorder of theDataA to empty -- unsorted, fastest"
>
> To All this thread,
>
> Let's assume that there is no sort function for keys added or order of
> entry set controls.
>
> put chars 4000 to 5000 of zigzag into myArray[4]["4000to5000"]
> put "4000to5000, " after myArray[9]["sorted"]
> put "4000to5000, " after myArray[9]["notSorted"]
> put "4000to5000, " after myArray[9]["entryOrder"] -- same as unsorted
> put "4000to5000, " after myArray[9]["globalEntryOrder"] -- for the whole
> array
>
> Later you can sort the list of keys in myArray[9]["sorted"]
>
> You now have a sorted and non sorted index map of all your keys. One by
> entry the other by sorting. What's more important is, is that you can keep
> track per dimensional layer.


OK. I got some learning to do - what can we do now, and what is proposed
regarding sorting of arrays? Also what's the difference between:

put someValue after myArray [ someKey]

and

put someValue into myArray [ someKey]

The former is new to me.



More information about the use-livecode mailing list