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
 LabTalk Forum
 short name vs. long name in X-Function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

porio

Chile
Posts

Posted - 08/21/2008 :  2:43:53 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cpyang

USA
1406 Posts

Posted - 08/21/2008 :  6:12:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for reporting this bug. I have added tracker id 12073 and we should be able to get the fix into SR3.

CP
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