deleting lines in a field

Dr. Hawkins dochawk at gmail.com
Mon Oct 27 11:34:10 EDT 2014


On Mon, Oct 27, 2014 at 12:28 AM, Serge Brami <brami.serge at gmail.com> wrote:

> Each Time you delete a Line this change the index of the lines in the
> field  so you cannot do this


That's why it's done backwards.  When you delete a line, only the later
lines are affected.

So if you need to delete 3 and 5, deleting 5 moves 6-last down, and 3 is
not affected, and is in the right place for deletion.

Per a recent thread, at *some* length, it may make sense to step through
and copy (repeat for each line) rather than modify the target, as each
deletion causes a recopy from that point on of the target.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list