> ; approach 1
> ; ==========
>        
>       for each line varline in v
>          
>         if (find(varline,"Trigger2") > -1) 
>            varline=""  
>        endfor

Won't work because you are not actually changing the vector (varline is a 
separate variable, not part of the vector).



>               
> ; approach 2
> ; ==========   
> 
>        ;for (i=len-1;i<0;i--)

Should be for (i=len-1;i>=0;i--) // assumes len set to v.length



> clip.set (v.makelines)
> wait.for (100)
> v.showmenu

Why are you shwing as menu?  Just to see results?


Just to help you understand what is happening, here is another alternative 
which should work (not tested!)

for (local i=0; i<v.length; )  //must recompute v.length, no i++
if (find(v[i],"Trigger2") > -1) do
v.delete(i)  // shifts all elements down, so  look at new v[i] next
else
i++
endif
endfor





Reply via email to