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
How to add column to the front of worksheet?
New Topic
Reply to Topic
Printer Friendly
Author
Topic
ashvilki
USA
10 Posts
Posted - 08/24/2003 : 7:50:46 PM
Hi, guys!
Does anybody know how to insert a column in front of the worksheet (and make it X) rather than add to the end?
Thanks a lot,
Alexei
Mike Buess
USA
3037 Posts
Posted - 08/24/2003 : 8:54:47 PM
Hi Alexei,
worksheet -i 0; // insert col at beginning of wks
worksheet -t 1 4; // set the type of the first column (4=X col, look at LabTalk help for others)
...Since this is the Origin C forum you might prefer the following.
void test()
{
string colNameCreated;
Worksheet wks = Project.ActiveLayer();
if( wks.InsertCol(0,"",colNameCreated) )
{
wks.Columns(0).SetType(OKDATAOBJ_DESIGNATION_X);
printf("New column is %s\n",colNameCreated);
}
else
printf("Could not create new column.\n");
}
Mike Buess
Origin WebRing
Member
Edited by - Mike Buess on 08/25/2003 2:07:49 PM
ashvilki
USA
10 Posts
Posted - 08/25/2003 : 9:32:20 PM
Thanks, Mike!
Both methods worked.
Alexei
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000