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
 short name vs. long name in X-Function

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
porio Posted - 08/21/2008 : 2:43:53 PM
OriginPro 8 SR2 (B891)
Windows XP SP3

Hi,

I want to smooth some data and store the result in a new column, unambiguously assigning a name to it. I do the following command:
smooth iy:=col(histy) oy:=(col(smhistx),col(smhisty))

And two new columns are created with short names 'A' and 'B' (or 'B' and 'C', or 'C' and 'D', depending on previously existing names) and long names 'smhistx' and smhisty', respectively. The problem is that I was expecting smhistx and smhisty to be short names, not the long ones. In fact, the LabTalk Help says: "When column name is NOT quoted, then the short name takes precedence."
With almost every other assignment that creates a column (i.e. col(blahblah)=col(A)+col(B)) the short name is assigned when I use that notation, but not when outputting this X-Function (I have nor tried with others).
Another thing is that if a column named 'smhisty' (short name) previously exists, then the command will correctly output to this column, correctly interpreting the notation as a short name. So the problem only arises when a new column has to be created.
I can think of a couple of workarounds for this (create the column previously, or deal with the new column by its long name) but it is better to maintain some consistency with respect to column names notation.

Regards
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 08/21/2008 : 6:12:26 PM
Thanks for reporting this bug. I have added tracker id 12073 and we should be able to get the fix into SR3.

CP

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