Arrays in Rev

Mark Brownell gizmotron at earthlink.net
Sun Jul 11 16:15:34 EDT 2004


on 7/11/04 12:31 PM, Troy Rollins at troy at rpsystems.net wrote:

> 
> On Jul 11, 2004, at 3:07 PM, Richard Gaskin wrote:
> 
>> My post tells a story: it begins with things the reader understands
>> (Judy is very familiar with working with delimited lists) and branches
>> out to how associative arrays can be used to solve related problems
>> with much greater flexibility and, in many cases, ease.
> 
> I understand quite well Rev's associative arrays, at least on the base
> level that they have been described here and in the documentation, and
> I use them in my work.
> 
> But, I'll go ahead and ask for some additional insight. As you may
> know, I come from an extensive background in Director, which has syntax
> derived from the same source as Transcript, but evolved to being "list
> based" rather than "string based" as Transcript is.
> 
> In Director, it is VERY common to have extremely deeply nested arrays,
> often with tens of thousands of items dispersed across many layers of
> array nesting. These nested arrays can contain both associative arrays,
> and linear lists, and those in turn can contain either as well, and so
> on. Contents of these lists are easily target-able, and very rapidly
> accessible.
> 
> How is this done in Transcript, if at all? If not, what is the logical
> replacement? In some cases, I've gone to generating stacks and using
> cards to organize such data, but would prefer a variable structure for
> the speed, especially considering that the user never has to actually
> see the data in the stored/working form.
> 
> --
> Troy

Hi Troy,

I came from Director also and missed lists so much that I created my own.

just for you:
http://www.gizmotron.org/revolution/dimensionalList.rev
&
http://www.gizmotron.org/revolution/mtmlDataTable.rev

...also at the RunRev website under developer contributions I created a
stack for array manipulation called frogBreath 1.0

I plan to take all three of these stacks and break them down as basic
tutorials for beginners. I will contribute them to Rev or the new RevDocs
group to be used any way that best supports the Rev community.

Mark





More information about the use-livecode mailing list