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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Column naming (wks.addcol)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
schneide Posted - 01/25/2017 : 10:44:33 AM
Origin 2017 (64 bit) b9.4.0.220
WIN7

I have worksheet with columns "A" and "B"

wks.addcol(ww) adds a column "C"

in earlier versions Origin used to add a column named "ww"

How do I create a user-defined column name now?

Giselher
3   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 01/30/2017 : 1:57:17 PM
Should be


if(@V >= 9.4) page.xlcolname=0; 



CP
schneide Posted - 01/30/2017 : 09:36:15 AM
Thank you, this is exactly what I needed.

To get rid of the error message when using the labtalk script for Origin < Origin2017 I use the line

if %(@V$) > 9.4 page.xlcolname=0;

Giselher
Hideo Fujii Posted - 01/25/2017 : 1:02:21 PM
Hi Giselher,

From the latest Origin 2017, Origin adopts the spreadsheet notation (like Excel) for the column name in default.
It makes the column reference easier, but the column short names follow the restriction accordingly. See:
http://www.originlab.com/doc/Origin-Help/Column-Short-Names-Restrict

So, to set the column short name arbitrarily, you need to turn off page.xlcolname property; That is:
page.xlcolname=0;
wks.addcol(ww);
Does this solve the problem?

--Hideo Fujii
OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000