Global Array?

Jim Ault JimAultWins at yahoo.com
Tue Dec 12 16:49:06 CST 2006


On 12/12/06 2:38 PM, "Frank D. Engel, Jr." <fde101 at fjrhome.net> wrote:

> Can someone give me a hint as to how I can set up an array as a
> global variable?
> 
> I know how to set up global scalars:
> 
> global var
> 
> But how can I do this for an array?
Exactly what do you mean by an array?

The normal Rev definition is simply

global gWhiz

put "firetruck" into gWhiz["Tommy"]
put "doll house" into gWhiz["Susan"]
put "perfume" into gWhiz["Mom"]
put "watch" into gWhiz["Dad"]

Now the global gWhiz has gifts stored in an array structure of keys and
elements.

Jim Ault
Las Vegas





More information about the use-livecode mailing list