bugs

Tariel Gogoberidze tariel at mac.com
Tue Apr 11 01:11:41 EDT 2006


On Apr 9, 2006, at 1:00 PM, Geoff Canyon wrote:
>
> Here is an example of something slightly larger than a single line
> (and actually useful) that I think is bug-free:

>
> on stableSetSize pID,W,H
>    -- sets the width and height of pID
>    -- while keeping the topleft the same
>    try
>      put the rect of pID into tRect
>    catch tSomeError
>      exit stableSetSize
>    end try
>    if W is a number then put item 1 of tRect + W into item 3 of tRect
>    if H is a number then put item 2 of tRect + H into item 4 of tRect
>    set the rect of pID to tRect
> end stableSetSize
>

Assuming correct input  it seems to be bug free. However..

on mouseUp
   put "button 1" into PID
   put 500000000000000.2 into W -- !
   put 50.3 into H
   stableSetSize pID,W,H
end mouseUp

Throws execution error here "rectangle does not have 4 points"

:)

best regards
Tariel




More information about the use-livecode mailing list