Storing objects in custom properties

Ian McKnight iangmcknight at googlemail.com
Fri Mar 30 17:22:35 EDT 2007


On 30/03/07, Richard Gaskin <ambassador at fourthworld.com> wrote:


>
> You can store a stack file in a custom property, but I don't know of a
> way to store individual controls there.
>
> You may find the copy command will do what you need quite handily, since
> it lets you specify a target for the copy:
>
>    copy <obj> to <dest>
>
> e.g.:
>
>    copy grp 1 of stack "TemplateParts" to this cd of stack "UserStack"
>
> When using the "to" option with the copy command it doesn't affect the
> user's clipboard, making it really convenient for both you and your user.
>

Hi Richard

I tried your suggestion with

copy grp "mygroup" of this stack to the umycustomProp

and got a Script Compile error
Error description: Function: missing '('

So I guess that controls can't be stored there.

Thanks for your help

-- 
Regards

Ian

=======================
Ian McKnight

iangmcknight at googlemail.com
=======================



More information about the use-livecode mailing list