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
 set column label to worksheet label
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

slooff

Netherlands
Posts

Posted - 08/29/2006 :  08:04:52 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System:Windows 2000

Dear all,

I have a worksheet data1 with "25" as the worksheet label. I perform an integration over a column (data1_B) and the result is put into a new dataset (data2_B). Now I want to set the label of column data2_B to be the label ("25") of the worksheet of data1_B.
How can this be done in C?

I tried to rename the worksheet into "25", but only numbers are not alowed as worksheet name.

Thanks for the help.

Lenneke

Mike Buess

USA
3037 Posts

Posted - 08/29/2006 :  08:30:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Lenneke,

WorksheetPage wpg("Data1");
string strLabel = wpg.Label; // Data1 label
Worksheet wks("Data2");
wks.Columns("B").SetLabel(strLabel); // set column label
wks.ShowLabels(); // show column labels

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 08/29/2006 08:36:49 AM
Go to Top of Page

slooff

Netherlands
Posts

Posted - 08/30/2006 :  03:55:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

Thanks again, it worked perfect. I am realy impressed by the quick and correct reactions on this Origin C forum!

Regards,

Lenneke
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