arrays in custom properties--not possible?

David Vaughan dvk at dvkconsult.com.au
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.

cheers
David
>
> Thanks
> Himalayan Academy Publications
>
> Sannyasin Sivakatirswami
> Editor's Assistant/Production Manager
> katir at hindu.org
> www.HinduismToday.com, www.HimalayanAcademy.com,
> www.Gurudeva.org, www.hindu.org
>
> Read The Master Course Lesson of the Day at
> http://www.gurudeva.org/lesson.shtml
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list