On Jan 19, 2007, at 7:16 PM, Scott Rossi wrote:

Howdy List:

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


One way you can get close to it, is use a custompropertyset setprop:

setprop MyCustomPropertySet[ pProp ] pValue
     switch pProp
          case "propA"
             doSomeStuff
          break
        case "propB"
             doOtherStuff
          break
     end switch
end MyCustomPropertySet

Incidentally, this is a way you can have two-parameter setprops!


t



--
Tereza Snyder

   Califex Software, Inc.
   www.califexsoftware.com

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to