Custom Properties
Mark Wieder
mwieder at ahsoftware.net
Wed Apr 12 15:16:33 EDT 2006
Tom-
Wednesday, April 12, 2006, 10:44:35 AM, you wrote:
> Does anyone have any examples on the get/setProps in real usage? I
> have been using custom props but not the setProp etc. I would love
> some more insightful ideas on it's usage.
Here's a simple ledger field component: negative values will show up
in red, positive values in the default color.
put this into a field script, then
set the NewValue of field "xyz" to someValue
setProp NewValue pValue
try
if pValue < 0 then
set the foreColor of me to "red"
else
set the foreColor of me to empty
end if
end try
put pValue into me
end NewValue
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list