Custom property sets

yves COPPE yvescoppe at skynet.be
Mon Jul 8 07:56:01 EDT 2002


>Greetings
>
>I have two custompropertysets which I set on startup:
>english
>japanese
>
>Each set has the same 3 keys but the keys have different content based on
>the language:
>
>btnnames
>errors
>fldcontents
>
>The contents of btnnames is like this:
>
>btn1,this is a btn
>btn2, this is another btn
>etc
>
>I split it to make an array and reference the items using:
>
>set the label of btn1 to btnnames[btn1]
>
>This sets the name to the appropriate language throughout the substacks.
>However, I have run into a problem referencing other customproperties. If I
>make a customproperty in a substack, say 'prefs', and try to call it, it is
>not available. Presumably because the custompropertyset of the main stack
>does not contain this customproperty?
>
>Is there a way to call customproperties in the substack without creating
>another set, then setting the custompropertyset to the new set, referencing
>the property, then resetting the set to 'english'?
>
>Thanks
>Ron
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution



You have to refer to the stack :
set the label of btn1 to btnnames[btn1] of this stack -- or of stack 
"YourstackName"

or something like :
  put  the short name of this stack <or whatever you want> into MYstackName
  set the label of btn1 to btnnames[btn1] of stack MYstackName

or you can also try :
set the customPropertySet of stack MYstackName to btnnames
--your script
...
...
...
--and then you reset with
set the customPropertySet of stack MYstackName to empty

hope this helps
-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be



More information about the Use-livecode mailing list