The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Writing Data to an empty worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

andreas.ba

Germany
3 Posts

Posted - 07/16/2002 :  10:44:44 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hallo,

I tried to fill worksheet cells by following C function, but it doesn't operate, if worksheet cells are empty. Who knows how to proceed?


void fill (string strData) {
Dataset index (strData,57);
string str;
int i;
for (i=0;i<=10;i=i+1) {
index[i]=i;
};
}




Andreas

cpyang

USA
1406 Posts

Posted - 07/16/2002 :  11:02:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You need to call SetSize first.

 
Dataset index(strData,57);
int imax = 10;
index.SetSize(imax );
for(i=0;i<=imax;i++)
index[i] = i;





CP


Go to Top of Page

andreas.ba

Germany
3 Posts

Posted - 07/17/2002 :  02:18:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you,

I found this item also some time after asking in the OriginForum. Is there some documentation available as the OBJECT REFERENCE chapter in the LABTALK manual?

Andreas
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000