<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: column number in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18220#M16618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;without using a loop for !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 03:22:26 GMT</pubDate>
    <dc:creator>KinKame</dc:creator>
    <dc:date>2016-04-27T03:22:26Z</dc:date>
    <item>
      <title>column number</title>
      <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18219#M16617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;how can I get the column number in a table?&lt;/P&gt;&lt;P&gt;as below header 3 is column # 3 in the table ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="98" style="border: 1px solid #c6c6c6; width: 254px; height: 48px;" width="252"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 03:18:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-number/m-p/18219#M16617</guid>
      <dc:creator>KinKame</dc:creator>
      <dc:date>2016-04-27T03:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: column number</title>
      <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18220#M16618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;without using a loop for !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 03:22:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-number/m-p/18220#M16618</guid>
      <dc:creator>KinKame</dc:creator>
      <dc:date>2016-04-27T03:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: column number</title>
      <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18221#M16619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is an approach using &lt;EM&gt;Contains&lt;/EM&gt; that does what (I think) you're asking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Open&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN style="color: #008f00;"&gt;//Works!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;column_nr &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Contains&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;get column names&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;string&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #942193;"&gt;"height"&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;column_nr &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Contains&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;get column names&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"height"&lt;/SPAN&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN style="color: #011993;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;column_nr &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Contains&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;get column names&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;expr&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;height&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; color: #008f00;"&gt;//Works not &lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;column_nr &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Contains&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;get column names&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; height&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 10:46:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-number/m-p/18221#M16619</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2016-04-27T10:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: column number</title>
      <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18222#M16620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you explain a little on why you want this? 99 times out of a 100, this value is not beneficial and there's a better coding methodology that should be implemented.&amp;nbsp; This is especially true since to get this number you'd either need to know the Column Reference or Column Name, which are both more valuable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 14:55:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-number/m-p/18222#M16620</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2016-04-27T14:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: column number</title>
      <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18223#M16621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I like where you're heading with this MS.&amp;nbsp; I might start out with a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Courier; font-size: 12px; background-color: transparent; color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; background-color: transparent; color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; background-color: transparent; color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4; font-family: Courier; font-size: 12px; background-color: transparent;"&gt;Current Data Table&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; background-color: transparent; color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; background-color: transparent; color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; background-color: #ffffff;"&gt;And if llupo0's question were how many columns are there your could be modified it to look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number_of_columns &lt;/SPAN&gt;&lt;SPAN style="margin: 0px; padding: 0px; border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #032ce4;"&gt;n items&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993; font-family: Courier; font-size: 12px;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #011993; font-family: Courier; font-size: 12px;"&gt;Get Column Names&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #000000;"&gt;&lt;STRONG&gt;())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993; font-family: Courier; font-size: 12px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ultimately interested, llupo0 could then refer to the columns by number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: Courier; font-size: 12px;"&gt;column3 &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #032ce4;"&gt;column&lt;/SPAN&gt;&lt;STRONG style="font-family: Courier; font-size: 12px;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: Courier; font-size: 12px;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value1_column3 &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; column3&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 21:46:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-number/m-p/18223#M16621</guid>
      <dc:creator>Nate_Riordan</dc:creator>
      <dc:date>2016-05-02T21:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: column number</title>
      <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18224#M16622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nice ... and yes it works perfectly thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 04:35:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-number/m-p/18224#M16622</guid>
      <dc:creator>KinKame</dc:creator>
      <dc:date>2016-05-03T04:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: column number</title>
      <link>https://community.jmp.com/t5/Discussions/column-number/m-p/18225#M16623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, but this post went from bad coding practices to worse coding practices.&amp;nbsp; As the saying goes, there are multiple ways to skin a cat, and there are multiple ways to write code to perform the same function.&amp;nbsp; However, what is the best way?&amp;nbsp; Generally, we will want to consider at LEAST the three main factors speed, length of code, and error proneness.&amp;nbsp; For this, reason, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;number_of_columns &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #032ce4;"&gt;n items&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #000000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit;"&gt;(&lt;/STRONG&gt; dt &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: Courier; color: #011993;"&gt;Get Column Names&lt;/STRONG&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #000000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit;"&gt;())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is really poor programming.&amp;nbsp; What you should use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;number_of_columns &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;ncols&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;dt&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: Consolas; font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obvious is it's shorter, but it's also faster.&amp;nbsp; The former has to create a list of all the column names, and then count them.&amp;nbsp; The latter will simply grab the table variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, &lt;SPAN style="font-size: 12px; font-family: Courier; color: #555555;"&gt;column3 &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #555555;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #032ce4;"&gt;column&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: Courier; color: #555555;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #555555;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #555555;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #009193;"&gt;&lt;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit;"&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: Courier; color: #555555;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 12px; font-family: Courier; color: #011993;"&gt;;&lt;/SPAN&gt; should never be used.&amp;nbsp; The first reason is b/c column3 is a poor name.&amp;nbsp; I'm not going to go into why, but you can read this post for clarification &lt;A href="http://www.sitepoint.com/whats-in-a-name-anti-patterns-to-a-hard-problem/" title="http://www.sitepoint.com/whats-in-a-name-anti-patterns-to-a-hard-problem/"&gt;What's in a Name? Anti-Patterns to a Hard Problem&lt;/A&gt;.&amp;nbsp; The second reason, is b/c of the additional step you are introducing. Why do: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;column_nr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;Contains&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;get column names&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;()&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;Column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"height"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;))&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;column &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; column_nr&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you could just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;column &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;Column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"height"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the latter is shorter and faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 15:30:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/column-number/m-p/18225#M16623</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2016-05-03T15:30:12Z</dc:date>
    </item>
  </channel>
</rss>

