T O P I C R E V I E W |
ashvilki |
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 |
2 L A T E S T R E P L I E S (Newest First) |
ashvilki |
Posted - 08/25/2003 : 9:32:20 PM Thanks, Mike! Both methods worked. Alexei |
Mike Buess |
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 |
|
|