Strange results in deletion of lines

Nicolas Cueto niconiko at gmail.com
Mon May 10 22:50:56 EDT 2010


David,

When you "delete line j of tHold", the number of lines in tHold
changes. So, tCount no longer meshes.

This is what I do instead:

put empty into tHoldFiltered
repeat for each line tLine in tHold
if character 1 of tLine is "F" then next repeat
put tLine & cr after tHoldFiltered
end repeat
if tHoldFiltered is not empty then delete the last char of tHoldFiltered
put tHoldFiltered into tHold


Cheers.

--
Nicolas Cueto



More information about the use-livecode mailing list