setprops, which property?

Niklas Almesjö niklas_almesjo at yahoo.com
Mon May 6 15:09:01 EDT 2002


Thanks Ken,
That is my experience aswell.. Which makes me wonder how I can use
setProps with a custompropertyset (since I can't get setprops to work with
the name of the either, once a custompropertyset has been assigned)?

cheers,
/Niklas

From: "Ken Ray" <kray at sonsothunder.com>
To: <use-revolution at lists.runrev.com>
Subject: Re: setprops, which property?
Date: Sun, 5 May 2002 15:57:14 -0500
Organization: Sons of Thunder Software
Reply-To: use-revolution at lists.runrev.com

Niklas,

I don't think there is currently a way to do that. If you have:

setProp myArray theValue
  -- stuff here
  pass myArray
end myArray

... and you execute "set the myArray[10] of this stack to 100", you will
trigger the setProp handler, and 'theValue' will contain '100', but you
won't be able to retrieve the '10' key.

Am I wrong? I'd love it if I were...

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Niklas Almesjö" <niklas_almesjo at yahoo.com>
To: <use-revolution at lists.runrev.com>
Sent: Sunday, May 05, 2002 1:02 PM
Subject: Re: setprops, which property?


> If I set the customPropertySet to an array, then it seems like setProps
> only works with the name of this set (not the keyname but the name of 
the
> array).. so how do you know which property that was set?
>
>
> Message: 10
> Date: Sat, 4 May 2002 20:06:17 -0700
> To: use-revolution at lists.runrev.com
> From: "Jeanne A. E. DeVoto" <jeanne at runrev.com>
> Subject: Re: setprops, which property?
> Reply-To: use-revolution at lists.runrev.com
>
> At 1:28 PM -0700 5/4/2002, Niklas "Almesj-" wrote:
> >Just started looking into customproperties, so I'd appreciate a hand..
> The
> >setprops message seems interesting, but I don't get how you see which
> >property that has changed.
>
> It's the name of the handler:
>
>   setprop myCustomProperty
>     beep
>   end myCustomProperty
>
> The above beeps when you try to set myCustomProperty to a new value.



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com



More information about the use-livecode mailing list