Hi,
rlewis,thanks you for your help,but failed.eg:
void DoSomeStuff()
{
Worksheet Wks=Project.ActiveLayer();
if (Wks.IsValid()==true)
{
Dataset s1;
if (s1.Attach(Wks, 0))
{
s1.SetSize(100);
for (int ii = 0; ii < 100; ii++)
s1[ii] = ii;
}
if (s1.Attach(Wks,1))
{
s1.SetSize(100);
for (int ii = 0; ii < 100; ii++)
s1[ii] = ii^2;
}
int jCol=Wks.AddCol();
if(jCol>=0)
{
if(s1.Attach(Wks,jCol))
{
s1.SetSize(100);
for (int ii = 0; ii < 100; ii++)
s1[ii] = sqrt(ii); // Add code for filling column attached to dataset s1
}
}
}
}
Is the red code wrong?
Jeson fon