Arrays: new and old keys, i

Mark Wieder mwieder at ahsoftware.net
Thu Sep 11 16:59:37 EDT 2008


Trevor-

Thursday, September 11, 2008, 11:32:39 AM, you wrote:

> 3) Ability to reference elements of an array in the order they were
> added to the array:

> put element 5 of theArrayA

I don't think this is properly the function of an array. If you're
talking about adding engine support for LIFO or FIFO stacks or queues
then that's a slightly different topic. But trying to access array
elements in the order they were added is a bit like trying to do the
same with database records - it's just not, strictly speaking, the way
databases work.

If you're using numeric arrays and you add elements in sequential
order, then note that you can get what you want by saying

put theArrayA[5]

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list