Probably your script is marked as "Behavior" instead of "Movie
script".
oliver


----- Original Message -----
From: "vivekpohre" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 8:28 PM
Subject: <lingo-l> Handler


> Hi All
>         I am new to Lingo and I just want to know why these chunks
of codes
> do not work ... i ve defined a handler
>
> on GetDayOfWeek(whichDay)
>
>
daysofWeek=["Sunday","Monday","Tuesday","Wednesday","Thrusday","Friday
","Sat
> urday"]
>   if((whichDay>count(daysofWeek)) OR (whichDay<1)) then
>     alert "Index out of range:"&&whichDay&".Please enter a number
from 1 to
> 7"
>     halt
>   else
>     days=daysOfWeek[whichDay]
>   end if
>   return days
> end
>
> and to check it i typed GetDayOfWeek(3) into the message window but
a
> "Handler not defined" error was coming
> Can anybody tell me what is the problem ?
>
> [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