Single Point Property Creation/Assignment
Trevor DeVore
lists at mangomultimedia.com
Thu Aug 4 01:44:11 EDT 2005
On Aug 3, 2005, at 10:03 PM, Ken Ray wrote:
> Well, as long as the variable holds a value, you don't need to use
> "do" for
> the *variable* part of it, i.e. this:
>
> put "Test" into tProp
> set the uPropSet[tProp] of this stack to "Hello"
>
> is the same as:
>
> put "Test" into tProp
> do "set the uPropSet[" & quote & tProp & quote & "] of this stack
> to" &&
> quote & "Hello" & quote
>
> However you can't get away with it for property sets or values...
> so the
> only way to do this is with "do", as you've put in your email.
Though you can't do something like this:
put "uSet" into tSet
put "uProp" into tProp
set the tSet[tProp] of me to "test"
You can do this:
set the customPropertySet of me to tSet
set the tProp of me to "test"
--
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the use-livecode
mailing list