dsVD11 and dsVD12 are probably not the same size. That is, the columns to which they are attached do not have the same number of rows. You can pad the shorter column with zeros like this...
int n1 = dsVD11.GetSize();
int n2 = dsVD12.GetSize();
if( n1>n2 )
dsVD12.InsertAt(n2,0,n1-n2);
if( n2>n1 )
dsVD11.InsertAt(n1,0,n2-n1);
dsVD1PUT = (dsVD11 + dsVD12)/2;
Mike Buess
Origin WebRing Member
Edited by - Mike Buess on 08/20/2007 11:46:15 AM