Storing objects in custom properties
Richard Gaskin
ambassador at fourthworld.com
Fri Mar 30 17:27:36 EDT 2007
Ian McKnight wrote:
> 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.
Correct. As I'd written, I know of no way to store controls in custom
properties.
The copy command can be used by simply storing your groups in some other
stack as a repository, copying them into the user's stack as needed.
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list