The problem is with the way director sees the line continuation or \ 
character. TAke out all of them (so that you have one long line) and I'll 
bet you'll be fine.


On Sat, 27 Apr 2002, noelle cheng wrote:

> Hi,
> 
> I do regret posting this but I am confused.
> 
> on getPropertyDescriptionList me
>    lProps = [:]
>    lProps.addProp( #pnMySoundChannel, [#default: 1, \
>                       #format: #integer,\
>                       #comment: "Which sound channel sprite?",\
>                       #range:\
>                       [#min:1, #max:(the lastChannel)])
> 
> 
> When I write the above, there is  a script error stating that there is a 
> comma expected.
> 
> I know that #default, #format, and  #comment is correctly written. It is 
> #range which has a problem.
> 
> But why do I need a comma there? There is already one between #min and #max.
> 
> 
> Then I tried doing something else.
> 
> 
> on getPropertyDescriptionList me
>    lProps = [:]
>    lProps.addProp( #pnMySoundChannel, [#default: 1, \
>                       #format: #integer,\
>                       #comment: "Which sound channel sprite?",\
>                       #range:\
>                       [#min:1, #max:(the last Channel)])
> 
> Now I receive an error stating that there is a script error: property 
> modifier expected.
> 
> Then when I did this,
> 
> on getPropertyDescriptionList me
>    lProps = [:]
>    lProps.addProp( #pnMySoundChannel, [#default: 1, \
>                       #format: #integer,\
>                       #comment: "Which sound channel sprite?",\
>                       #range:\
>                       [#min:1, #max:(thelastChannel)])
> 
> 
> the error message was variable used before assigned a value.
> 
> 
> 
> This leads me to  guess that the first getPropertyDescriptionList  I have 
> written may be correct, so I checked everything in the code. But I believe 
> that there is no mistake and I have copied and pasted exactly from the 
> script. And I don't think I am short of a comma?
> 
> Noelle
> 
> 
> [To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/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/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