Hi Mats,
1. Maybe because the following loop script in Case 1, so a few data will become missing value when you run your script.
loop(idx,ii-count,ii-1)
{
raTarget[idx] = 0/0;
}
2. If I do not misunderstand your meaning, you want to store the "flat" value for each loop, you can use:
Col(C)[ii]=flag;
Then use the loop script to delete the data if the corresponding "flat" value=0. For example:
range raTarget = col(A);
loop(ii,1,raTarget.GetSize())
{
range aa=1[$(ii)];
double bb=col(3)[$(ii)];
if (bb==0) del aa;
}
Please note: This script just delete the data in Column A (Column1), and shift cells up. So after run it the corresponding relation of Column A data and the Column C "flat" will be broken.
Thanks
Jacqueline
Originlab