I need your help for coding a script which delete all empty lines in a list of more than 475000 index.
I've tried the code below but it doesn't work (infinit loop).
Code: Select all
on mouseUp-- delete empty lines
put fld "texteBrut" into laListe -- contains > 475000 lines
put the number of lines of laListe into nbrDeLignes
repeat with xxx = 1 to 25 --TEST until 25 not all nbrDeLignes --
put line xxx of laListe into laLigneActive
if laLigneActive is empty then
delete line xxx of laListe
put empty into fld "texteBrut" --
put laListe into fld "texteBrut" -- update the fld
mouseUp -- we start again
end if
end repeatRegards, Jean-Paul.
