Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handler Definition Expected Error

Status
Not open for further replies.

hazelsisson

Programmer
Mar 18, 2002
68
GB
Hello!
I have defined a handler in my lingo, which won't compile. It looks similar to this:

on replaceComponents

set the visible of sprite 50 = true

if ... then
...
else...
...end if

if ... then
...
else...
...end if

end

It always has the error "Handler Definition Expected", unless I take out the second if loop (in this case it compiles).
Does anyone have any idea what is going on here? I have had similar problems in the past; all involving if loops within user defined handlers. Moving it around and trying different constructs often solves the problem but this one won't work!
Thanks,
Hazel
 
Which Director version are you working with? Which platfrom. Wierd bug actually.

Mayuresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top