Accessing parts of arrays

jbv jbv.silences at
Wed Sep 29 16:34:10 EDT 2004

> At 12:07 PM -0400 9/29/2004, Gregory Lypny wrote:
> >In doing some statistical work, it occurred to me that Revolution's
> >arrays would be greatly enhanced if we could access sub-arrays just
> >like we can with itemized and line-delimited lists.
> I agree it's a good idea. It might be harder than it looks, because
> all Rev's arrays are associative arrays (what look like numeric
> arrays are actually associative), so I suspect some major reworking
> would be needed.
> --

another interesting feature would be some sort of "find" function
for arrays... for instance :
    put "myText" into T[5,8]
    find "myText" in T  ----> would return "5,8"
                                             or a list of found chunks
if it is in more
                                             than 1 array cell

I know this can be emulated using the "combine" function, and then
itemoffset of lineoffset, but it would be more elegant (and probably
And I don't think this means a major rewriting...


More information about the use-livecode mailing list