Merlin schrieb:
> 
> To use the "addProp" function would it replace the value selected when
> initially selecting a value through the behavior.
> eer did that make sence?
> 
> For example, if I created a property list for a car behavior 'speed'. I set
> the default to 1.5 and had a range between 1 and 2. If the car were to
> change gear would the "addProp" function allow me cycle through my range of
> numbers or would it add a number to that range?
> 
Neither. It would add another property to the list like this:
Your list is  myList=[speed:1.5]
addProp (myList, speed, .25) makes YOur list look like this:
put myList
--[speed:1.5, speed:.25]

You should use this syntax instead:
myList[#speed]=myList[#speed] + changeFromGear

regards, Florian

> If you think i have confused myself with this please say!
> Thanks
> Jonathan
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Lists
> Sent: 04 February 2001 21:01
> To: [EMAIL PROTECTED]
> Subject: Re: <lingo-l> Property description Lists
> 
> On 2/5/01 4:51 AM, Merlin ([EMAIL PROTECTED]) sent:
> >One final question though, what does this actually do " vPDList = [:] " ?
> 
> This simply creates an empty property list to allow you to use the
> "addProp" function to add to it later.
> 
> Rich
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to