Custom property sets

Ken Ray kray at sonsothunder.com
Mon Jul 8 09:05:01 EDT 2002


Ron, you should be able to address it directly like:

set the label of btn1 to btnNames[btn1] of stack <subStackName>


Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Ron" <rbarber at yhb.att.ne.jp>
To: <use-revolution at lists.runrev.com>
Sent: Monday, July 08, 2002 2:30 AM
Subject: Custom property sets


> 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
>




More information about the Use-livecode mailing list