yikes you got all kinds of confusion here, like the difference between
variables and their values, and the difference between properties and globals.
there are two main things wrong with the getPropertyDescriptionList method.
1. you're naming the property vMode in the method, but you declare
vModeList as the property at the top of the script. those names need to
be consistent. vModeList is nothing but a local variable you temporarily
are using in the getPropertyDescriptionList.
2. you failed to enclose the default value in quotes.
fix those two, and that should be a start.
--bhakti
Jonathan Rees wrote:
>
> I am setting up a behavior to set a mode. I need to pass either mode1
> ,mode2,mode3,mode4,mode5 to set it but it returns void, I would just like to
> know if I have set up the getPropertyDescriptionList correctly..
>
> global gMode,mode1,mode2,mode3,mode4,mode5
>
> property vModeList
>
> on getPropertyDescriptionList me
> vModeList = [:]
> addProp(vModeList, #vMode, [#comment:"Assign a Mode",�
> #format:#string, #Default:mode1, #range:[ "mode1"
> ,"mode2","mode3","mode4","mode5"]])
> return vModeList
> end getPropertyDescriptionList me
>
> on mouseUp me
> gMode=vModeList
> changeManPablo
> put gMode
> end
>
> It should send it like gMode="mode1"
>
> Can anyone help please?
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> [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!]
--
R. Bhakti Klein
Educational Software R & D
http://www.DLWorkshop.net
��
Baritone
���
"On Earth, you can only do little things;
but you can do them with a lot of Love."
-- Mother Theresa
[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!]