>float(sprite(p_Sprite).height)/(sprite(p_Sprite).width)
>
>When I use it within a handler it gives the result 1.0000, whcih is not
>accurate, but when it is used in message window the result is 1.3261, which
>is accurate. Why? The p_sprite's width and height are different it is not a
>square, but rectangle and I want to reduce it proportionally.
Do you use a placeholder dot before assigning the member at runtime?
That could explain the difference. In any case, checking the width
and height of the member may be the better thing to do.
[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!]