On 19 Jul 2000, at 13:20, Leston Drake wrote:

> Hi,
> 
> I looked through the archives to see if this has been discussed before, but 
> didn't find anything, so I hope I'm not repeating something because I know 
> there's been a lot of discussion flying around about customPropertySets.
> 
> Is it possible to directly save an array in memory into a customPropertySet 
> of an object without saving each element of the array individually?
> What I would like to do is something like
> 
> local myArray
> ...
> set the myArrayProp of me to myArray
> 
> This sure would be handy if it is possible to do. Anyone? 
> If it's not possible, it wouldn't be difficult to create a script that dumped it 
> element by element, but I'm always looking for the simplest way ;-)
> 

I found the answer to my own question. I figured this sort of functionality 
must have been one of the main reasons to create customPropertySets, so I 
did a little more testing. Here's what works:

1. Set the customPropertySet of the object to the name of the property to 
store the array elements into.
    "set the customPropertySet of me to myArrayProp"
2. Put the array data into the customProperties property of the object
    "set the customProperties of me to myArray"

Simple as pie (if you know how to do it).
Thanks Scott, this is great stuff!

> TIA
> 
> Leston Drake
> LetterPress Software, Inc.
> http://www.lpsoftware.com
> 
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> 
> 



Leston Drake
LetterPress Software, Inc.
http://www.lpsoftware.com

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to