A Single SetProp?
Ken Ray
kray at sonsothunder.com
Fri Jan 19 20:26:10 EST 2007
On Fri, 19 Jan 2007 17:16:58 -0800, Scott Rossi wrote:
> I'm just now coming to grips to with the SetProp control structure and was
> wondering if there is a way to trigger a single SetProp structure (that
> contains a switch statement) when setting *any* custom property, or do you
> have to use a separate SetProp structure for *each property* you want to
> monitor. Something like:
>
> setProp anyOfMyProps pValue
> switch anyOfMyProps
> case "propA"
> doSomeStuff
> break
> case "propB"
> doOtherStuff
> end switch
> end anyOfMyProps
>
> I have the feeling this isn't proper usage but I thought I'd ask anyway.
Sorry, Scott - you need to define one setProp for each property being
set. In a way it's kind of like trying to have an "on <anyHandlerName>"
handler to trap calls made to any handler... just ain't gonna happen.
:-)
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list