On Mon, Oct 27, 2014 at 5:41 PM, Bob Sneidar
wrote:
> I’m kind of surprised at these suggestions. Why not rather build a memory
> variable containing the lines that are not selected, then replace the field
> with the variable?
That's what the function I posted does.
I’m kind of surprised at these suggestions. Why not rather build a memory
variable containing the lines that are not selected, then replace the field
with the variable? Or as suggested, put the field into a memory variable, then
put empty into the selected lines, then filter non-empty lines and
Depending on the size of your data, something like this could be (much)
faster:
function removeLines lineList,S
put 0 into lineCounter
split lineList with comma as set
repeat for each line L in S
add 1 to lineCounter
if lineList[lineCounter] then next repeat
put L & cr a
On Mon, Oct 27, 2014 at 12:28 AM, Serge Brami 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 m
Each Time you delete a Line this change the index of the lines in the field so
you cannot do this
Best way :
repeat with i = the number of words in theLins down to 1
>
> Put empty into line (word i of theLins) of theData
> end repeat
Filter thelins without empty
Email par IPhone de
Dr Serge B
Once you have the lines in variable theLins
repeat with i = the number of words in theLins down to 1
delete line (word i of theLins) of theData
end repeat
On Sun, Oct 26, 2014 at 2:10 AM, wrote:
> I have a field that allows non-contiguous selection of lines
>
> What is the easiest way to dele
I have a field that allows non-contiguous selection of lines
What is the easiest way to delete the selected lines?
I've tried a bunch of things and I end up doing this big convoluted script to
do it. It seems like it should be simple?
Thanks, Larry
_