Generic setprop (was: Re: Custom Properties vs globals)
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Tue Jul 17 09:03:22 EDT 2007
Hi David,
Le 17 juil. 07 à 14:45, David Bovill a écrit :
> unfortunatley you cannot pass arrays to setprop handlers
True.
But this reminded me of a non documented way to handle GetProp and
SetProp in Rev allowing to trigger any prop in a given custom
property set in one single handler:
setprop vtEvent[pPropName] pNewValue
switch pPropName
case "uSnapShotIsAvailable"
<statements>
break
case "uPageCached"
<statements>
break
default
<error handling>
end switch
-----
pass vtEvent
end vtEvent[pPropName]
pPropName is here passed to Setprop as a param.
This may help.
Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------
More information about the use-livecode
mailing list