Custom Properties
Thomas McGrath III
3mcgrath at adelphia.net
Wed Apr 12 15:50:11 EDT 2006
Mark,
The first two went right over my head. ;-) But the last one makes
total sense to me.
Thanks, food for thought.
Tom
On Apr 12, 2006, at 2:31 PM, Mark Smith wrote:
> One example, that reformats an addition to a custom prop containing
> some data might be
>
> setProp someData aValue
> set the someData of me to the someData of me & reformat(aValue)
> end someData
>
> similarly, to ensure that you only ever get a formatted version of
> a custom prop
>
> getProp someValue
> return format("%8.2f",the someValue of me)
> end someValue
>
> You can also use them to create dummy custom props:
>
> getProp Area
> return the width of me * the height of me
> end Area
>
> so you can now script : get the Area of fld 1
Thomas J McGrath III
3mcgrath at adelphia.net
Lazy River Software™ - http://www.lazyriversoftware.com
Lazy River Metal Art™ - http://www.lazyriversoftware.com/metal.html
Meeting Wear™ - http://www.cafepress.com/meetingwear
Semantic Compaction Systems - http://www.minspeak.com
SCIconics, LLC - http://www.sciconics.com/sciindex.html
More information about the use-livecode
mailing list