Strange results in deletion of lines

Sarah Reichelt sarah.reichelt at gmail.com
Mon May 10 23:13:32 EDT 2010


>> When you "delete line j of tHold", the number of lines in tHold
>> changes. So, tCount no longer meshes
>
> That actually makes a lot of sense now that you mention it... guess
> I've been overlooking the obvious.

If you really want to do it with a loop, count backwards, then it will
work fine.

 repeat with j = tCount down to 1
     if character 1 of line j of tHold = "F" then delete line j of tHold
 end repeat

Cheers,
Sarah



More information about the use-livecode mailing list