inheriting any custom property
dick.kriesel at mail.com
Fri Sep 23 17:03:20 CDT 2005
Here¹s a function that (I think) lets any object inherit any custom
property. It works for me, but does anyone see trouble with it?
function effectiveValue pPropertyName
put the long id of the target into tObject
put "put the" && pPropertyName && "of tObject into tValue" into tStatement
repeat until tObject is empty
if tValue is not empty then exit repeat
if word 1 of tObject is "stack" then delete word 1 to 3 of tObject
else delete word 1 to 4 of tObject
As an example application, here's a getProp handler for uSampleProperty:
Thanks in advance for your consideration...
More information about the use-livecode