valueDiff for arrays?
Bob Sneidar
bobsneidar at iotecdigital.com
Tue Aug 7 17:50:02 EDT 2018
Someone said, probably Mark, that numbered key arrays beginning with 1 will always return their keys sorted numerically. I always wondered why almost every other array seemed to scramble to order of it's keys, but datagrid arrays never did.
Bob S
> On Aug 7, 2018, at 14:31 , Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> On 08/07/2018 02:21 PM, Mark Waddingham via use-livecode wrote:
>> However, the engine treats arrays which have all integer (string) keys starting at one and are dense (i.e. the number of elements == max(all keys)) from ones that aren't.
>
> Not sure how to interpret that. If I create
>
> repeat with i=1 to 10
> put i into tArray[i]
> end repeat
>
> to make a 'special' array and then
> delete variable tArray[3]
>
> does that take it out of the 'special' category?
>
> --
> Mark Wieder
> ahsoftware at gmail.com
More information about the use-livecode
mailing list