copy custom property set

Mike Bonner bonnmike at gmail.com
Fri Dec 2 01:42:47 EST 2011


You can do something like this.

put the customproperties["en"] of stack "stackname" into myArray
--at this point you can modify the array to change your values and then
set the customproperties["ja"] of stack "stackname" to myArray



On Thu, Dec 1, 2011 at 10:31 PM, Nicolas Cueto <niconiko at gmail.com> wrote:

> Hello.
>
> I'm not too confident with custom properties, so my terminology here
> could be imprecise.
>
> In my stack's custom properties there is a set called "en". In turn,
> that set "en" has a long list of keys (?).
>
> Thus, for example, if I script:
>
>  put the en["greetingMorning"] of stack "myStack"
>
> it'll return:
>
>  "Good morning!"
>
> What I want to do is create a new custom prop called "ja", with the
> same long list of keys as "en", but with different contents.
>
> Thus, for example, if I script:
>
>  put the ja["greetingMorning"] of stack "myStack"
>
> it'll return:
>
>  "Ohayo gozaimasu"
>
> But I do not know how to:
>
> 1) create "ja" with the same keys as "en"
> 2) insert data into each of the keys of "ja"
>
> I don't mind doing (2) manually. But is there not an automatic way of
> doing (1)?
>
> Thank you.
>
> --
> Nicolas Cueto
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list