Is Transcript's English orientation a plus or minus?
Doug Lerner
doug at webcrossing.com
Mon Feb 9 20:08:15 EST 2004
On 2/10/04 9:52 AM, "Dar Scott" <dsc at swcp.com> wrote:
>
> On Monday, February 9, 2004, at 05:43 PM, Doug Lerner wrote:
>
>> thisStudent.age + thatStudent.age
>
> thisStudent["age"] + thatStudent["age"]
>
> ...is admittedly 6 characters over yours.
Yes, associative arrays are essentially properties. In JavaScript you could
actually write it either way. Usually the way you wrote it would be used if
the property name itself were a dynamic value.
But what about a similar notation for
set the hilite of button "thisButton" of card "thisCard" of stack
"thatStack" to true
Something like
thatStack.thisCard.button:thisButton.hilite = true
might be convenient...
doug
More information about the use-livecode
mailing list