importing a bunch of files
Ken Ray
kray at sonsothunder.com
Fri Jan 18 23:05:42 EST 2008
On Wed, 16 Jan 2008 12:19:44 -0800, Randall Lee Reetz wrote:
> Richard,
>
> In your script, it appears that a custom prop is dynamically declared
> just by setting it's value? Is this all you have to do? In
> SuperCard, one has to specifically declare a "user" property with a
> "define" statement before ever setting it's value. Otherwise it
> doesn't know if you are declaring a var or a prop... how does Rev do
> this (oh, maybe it is the use of "set")?
That's correct, Randall - you only need to "set" to both define and set
the value of a custom property. Plus Rev has custom property *sets* as
well, so you can keep arrays of data in custom properties.
So:
set the age of fld 1 to 10
-- defines and sets 'age' custom prop
set the scores["Ken"] of me to 75
-- defines the custom property set "scores" with one
-- key (element) called "Ken" and sets its value to 75
set the scores["Randall"] of me to 90
-- adds another key to "scores"
put the keys of scores
--> Ken
Randall
HTH,
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list