use-revolution Digest, Vol 66, Issue 47

James Hurley jhurley0305 at sbcglobal.net
Sat Mar 28 13:57:35 EDT 2009


>
>
> On Mar 28, 2009, at 8:43 AM, James Hurley wrote:
>> On Mar 28, 2009, at 1:26 AM, Jim Ault wrote:
>>
>>> A simple example we all know...
>>>
>>> I live in an array called a "house"
>>> It contains rooms thus
>>> house[bedroom]
>>> house[kitchen]
>>> ---my kitchen contains a refrigerator with shelves and a freezer
>>> house[kitchen][refrigerator][top shelf]"cheese, pickles, butter"
>>
>> Wait, wait,not so fast. I get that arrays are hierarchical. But I
>> need to know what you mean by the line  above.
>>
>> RR won't compile [top shelf], is "shelf" a parameter associated with
>> "top"? Or was it an abbreviation  for top_shelf or maybe  topShelf?
>>
>> And what happens to the trailing "cheese,pickles, butter"? is this
>> now the array element assigned to house[kitchen][refrigerator][top
>> shelf]
>>
> As you see, I can't get started with this until I get a handle on the
> notation.
> You are correct that Rev won't compile
> house[kitchen][refrigerator][top shelf]
> but it will compile using the syntax
> house["kitchen"]["refrigerator"]["top shelf"]
>
> I left out the quotes so it would read better.
>
> So the syntax would be
> put "cheese, pickles, butter" into house["kitchen"]["refrigerator"]
> ["top shelf"]
>
> Hope this helps,
>
> Jim Ault
> Las Vegas
>
>

Thanks Jim. I get it.

I do a lot of election database work for local political  candidates  
at election time.
In that case there are a fixed set of defined fields for each voter  
record.
I use RR a lot for constructing mailing labels for select political  
mailers, i.e. mail to households, or to families using first names,  
or just to individuals.
It doesn't appear that the hierarchical nature of  RR multi- 
dimensional arrays would be an advantage in these kinds of applications.

Thanks again,

Jim  Hurley



More information about the use-livecode mailing list