<?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 Column name with square brackets in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-name-with-square-brackets/m-p/670824#M85879</link>
    <description>&lt;P&gt;I have seen some scripts adding&amp;nbsp; square brackets "[]" after the column name. What does that mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example : there column name is shopID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;script : Loc = Num(Words(1, :shopid[]));&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 03:09:55 GMT</pubDate>
    <dc:creator>Dorami</dc:creator>
    <dc:date>2023-08-24T03:09:55Z</dc:date>
    <item>
      <title>Column name with square brackets</title>
      <link>https://community.jmp.com/t5/Discussions/Column-name-with-square-brackets/m-p/670824#M85879</link>
      <description>&lt;P&gt;I have seen some scripts adding&amp;nbsp; square brackets "[]" after the column name. What does that mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example : there column name is shopID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;script : Loc = Num(Words(1, :shopid[]));&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 03:09:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-name-with-square-brackets/m-p/670824#M85879</guid>
      <dc:creator>Dorami</dc:creator>
      <dc:date>2023-08-24T03:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Column name with square brackets</title>
      <link>https://community.jmp.com/t5/Discussions/Column-name-with-square-brackets/m-p/670835#M85882</link>
      <description>&lt;P&gt;That can be used to access value(s) of the column depending a bit where it is being used. Usually I use (or rather I don't as I prerfer using [Row()]) to access value of current row&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

/*
Show(row());
show(:name[]); // will fail as current row is 0 (non-valid)
*/

Row() = 1;
show(:name[]);
show(:name[Row()]);
show(:name[1]);

Row() = 28;
show(:name[]);
show(:name[Row()]);
show(:name[28]);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/set-or-get-values-by-column-name.shtml#" target="_blank" rel="noopener"&gt;Scripting Guide &amp;gt; Data Tables &amp;gt; Access Data Values &amp;gt; Set or Get Values by Column Name&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/send-messages-to-data-column-objects.shtml#ww806728" target="_blank" rel="noopener"&gt;Access Cell Values through Column References&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 04:39:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-name-with-square-brackets/m-p/670835#M85882</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-08-24T04:39:35Z</dc:date>
    </item>
  </channel>
</rss>

