arrays in custom properties--not possible?

David Vaughan dvk at
Tue Sep 17 22:00:01 EDT 2002

On Wednesday, Sep 18, 2002, at 07:12 Australia/Sydney, Sannyasin 
Sivakatirswami wrote:

> on storePrefs
>   repeat with x = 1 to (the number of fields of this stack)
>     put  fld x into gPrefsArray[the short name of fld x]
>   end repeat
>   set the cPrefs of this stack to gPrefsArray
> end storePrefs
> the above fails, apparently because the attempt to set a custom 
> property to an array is unacceptable. Is this a known limitation? 
> "Tell me its not so..."

"Tis so..." except as Dave Cragg pointed out. Your other alternative is 
to use a custom property as an array, directly, rather than setting it 
to an array. So, refer to cPrefs[the short name of field x] and skip 
the gPrefsArray bit.

> Thanks
> Himalayan Academy Publications
> Sannyasin Sivakatirswami
> Editor's Assistant/Production Manager
> katir at
> Read The Master Course Lesson of the Day at
> _______________________________________________
> use-revolution mailing list
> use-revolution at

More information about the Use-livecode mailing list