--- Doug Lerner <[EMAIL PROTECTED]> wrote:
> This results in a syntax error that "what is to the
> left of within" is not a
> point:
> 
>   addToStatus "within: " & the mouseLoc is within
> the rect of the target
> into withinCheck
> 
> 
> But rewriting it this way works:
> 
>   put the mouseLoc is within the rect of the target
> into withinCheck
>   addToStatus "within: " & withinCheck
> 
> A compiler bug?
> 
> doug
> 

Hi Doug,

I wouldn't call it a compiler bug : the ampersand
(concatenation operator) is stronger thn the 'is
within' function, so the engine interprets your
version as :

  addToStatus ("within: " & the mouseLoc) is within
the rect of the target into withinCheck

which of course creates a problem because now it
doesn't have a point to check with the 'is within'
operator.
To avoid this, simply recode to :

  addToStatus "within: " & (the mouseLoc is within
the rect of the target into withinCheck)

Hope this carified things a bit,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to