Deleting Data Woefully Slow

Mark Wieder mwieder at ahsoftware.net
Wed Mar 24 21:51:28 EDT 2010


And on reading the code yet another time, there's enough fuzzy stuff
in there to make me discount most of it without rewriting.
Nonetheless, the conclusions are fairly solid, and the fastest way to
delete the last line of a variable turns out to be the surprising

    put empty into tData1
    put 1 into x
    put the number of lines in tData into tHowMany
    repeat for each line tLine in tData
        put tLine & cr after tData1
        add 1 to x
        if x is tHowMany then
            exit repeat
        end if
    end repeat

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list