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 |