hilitedLines bug

J. Landman Gay jacque at hyperactivesw.com
Sat Feb 2 15:23:20 EST 2013


On 2/2/13 1:16 PM, Terry Dennis wrote:
> Bug: hilitedLines is incorrect after delete of a line.
>
> on mouseUp
>     if exists(field "Info") then
>        delete field "Info"
>     end if
>     create field "Info"
>     set the listBehavior of field "Info" to true
>     repeat with tCounter = 1 to 20
>        put "test data" && tCounter & cr after field "Info"
>     end repeat
>     set the hilitedLines of field "Info" to "12,13,14,15"
>     if the hilitedLines of field "Info" <> "12,13,14,15" then
>        answer "Ooops - Should be 12,13,14,15 -- is" && the hilitedLines of field "Info"
>        breakpoint
>     end if
>     delete line 2 of field "Info"
>     if the hilitedLines of field "Info" <> "11,12,13,14" then
>        answer "Ooops - Should be 11,12,13,14 -- is" && the hilitedLines of field "Info"
>        breakpoint
>     end if
> end mouseUp

Yes, looks like the first pass is wrong. After the first line deletion I 
see only three hilitedlines instead of four (12,13,14). If I continue to 
delete line 2, the rest of the results are correct.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list