Try this:
insrow=10; // insert in 10th place
nrows=wks.nrows+1;
loop (ii,1,wks.ncols) { // for all columns
%a=%(%h,ii);
%a[nrows]=0/0; // insert new cell at the end
temp=%a;
copy -b insrow temp %a -b (insrow+1) -e nrows;
%(%h,ii,insrow)=0/0; // clear new row
}
del temp; del -v insrow; del -v nrows;
If you don't enclose in brackets the insrow+1 of the copy command it won't work. I don't know why.
Jose Via, Origin WebRing member
Edited by - Jose on 05/22/2002 14:41:23