Arrays in Rev (long)

Trevor DeVore lists at mangomultimedia.com
Mon Jul 12 11:06:11 EDT 2004


On Jul 12, 2004, at 2:20 AM, Klaus Major wrote:

> Hi Ken and all,
>
> I did not get an answer on this one, maybe you can give a hint?
>
> Does anybody know how to access CPsets/arrays without knowing either
> the arrayname nor the keyname?
>
> I mean the keys can be variables, but can the name also be a 
> variable???
>
> Something like:
>
> ...
> put line 1 of fld 2 into array_name
> put line 3 of fld 5 into key_name
> put the array_name[key_name] of this stack
> ...
>
> Know what i mean?
> Looks like this does NOT work with IT...

I saw the other response to this but wanted to mention that when 
working with Custom Properties you can do something like this as well:

put line 1 of fld 2 into array_name
put line 3 of fld 5 into key_name
set the customPropertySet of this stack to array_name
put the key_name of this stack


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list