custom prop

Devin Asay devin_asay at byu.edu
Tue Jan 29 11:19:01 EST 2002


At 6:28 PM -0800 1/27/02, Jeanne A. E. DeVoto wrote:

[snip]

>For example, suppose you have a bunch of custom properties that hold
>strings in French that are used in your application. Your scripts might use
>these custom properties. For example, you might have a line like
>   answer the myStringHere of this stack
>which displays the contents of the custom property called "myStringHere" in
>an answer dialog box. So far, you do not need custom property sets at all -
>only custom properties.
>
>Then you decide you want to translate your app into English. In this case,
>you could place your original properties into a set called "frenchStrings",
>then create another set called "englishStrings". Each set would have the
>same-named properties, but one set would have them in French and the other
>in English. Then you would switch between the sets depending on what
>language the user wants, and the line
>   answer the myStringHere of this stack
>would provide either the English or French, depending on which custom
>property set is active: "englishStrings" or "frenchStrings".

Jeanne,

This is great stuff, the first time I've understood what custom 
property sets are for.  But how do you make one set or the other 
active?

Devin
-- 
Devin Asay
Humanities Research Center
Brigham Young University



More information about the use-livecode mailing list