<?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: why ::labelslist ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939377#M109366</link>
    <description>&lt;P&gt;&lt;EM&gt;Unknown&lt;/EM&gt; means JMP caught an unexpected error and has no better explanation. Report it and explain what you think it should do; a developer will get a chance to fix it, either by making it work in a reasonable way or by making the message better.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2026 23:13:42 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2026-04-03T23:13:42Z</dc:date>
    <item>
      <title>why ::labelslist ?</title>
      <link>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939133#M109360</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

labelsList = {"F" = "A", "M" = "B"}; //here namespace
::labelsList = {"F" = "①", "M" = "②"}; // global variable
f = function ({},
	{default local},
	labelsList = {"F" = "X", "M" = "Y"} ; // local variable
	dt:sex  &amp;lt;&amp;lt; Set Property( "Value Labels", labelsList ) // which variable will JMP pick?
);

f&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;JMP 19.1: &amp;nbsp;&lt;FONT face="courier new,courier"&gt;①,②&lt;/FONT&gt;&lt;BR /&gt;JMP 18.2.2&amp;nbsp;&amp;amp;&amp;nbsp;JMP&amp;nbsp;20EA:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;X,Y&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;workarounds:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;use&amp;nbsp;&lt;FONT face="courier new,courier"&gt;dt:sex &amp;lt;&amp;lt;Value Labels( labelsList )&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;use &lt;FONT face="courier new,courier"&gt;Eval (Eval Expr( ... Expr (labelslist)&amp;nbsp; &amp;nbsp; ))&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 02 Apr 2026 21:27:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939133#M109360</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-04-02T21:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: why ::labelslist ?</title>
      <link>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939146#M109361</link>
      <description>&lt;P&gt;much more difficult to understand was the initial error message:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Unbenannt.png" style="width: 345px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/98086iF4EFC78E8CE88C37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.png" alt="Unbenannt.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;delete symbols (::labelsList);

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
f = function ({},
	{default local},
	labelsList = {"F" = "X", "M" = "Y"} ; 
	dt:sex  &amp;lt;&amp;lt; Set Property( "Value Labels", labelsList )
);

f&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Apr 2026 21:33:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939146#M109361</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-04-02T21:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: why ::labelslist ?</title>
      <link>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939377#M109366</link>
      <description>&lt;P&gt;&lt;EM&gt;Unknown&lt;/EM&gt; means JMP caught an unexpected error and has no better explanation. Report it and explain what you think it should do; a developer will get a chance to fix it, either by making it work in a reasonable way or by making the message better.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 23:13:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939377#M109366</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2026-04-03T23:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: why ::labelslist ?</title>
      <link>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939409#M109372</link>
      <description>&lt;P&gt;JMP19 maybe does the evaluation in the data table which is why global value is being used. You can question should that evaluation happen at all&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The column stores the column property with the values supplied without evaluation or validation of the supplied arguments. In order to add column properties that contains variables using JSL code, the script must convert any variables to their actual values.&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.1/index.shtml#page/jmp/set-or-get-column-properties.shtml#ww823893" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Data Tables &amp;gt; Work with Columns &amp;gt; Set or Get Column Properties&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also make JMP crash with JMP19 if you wrap your variable with {} (JMP18 won't crash and you will get &lt;EM&gt;attempt to assign error&lt;/EM&gt;).&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2026 05:17:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/why-labelslist/m-p/939409#M109372</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-04-04T05:17:06Z</dc:date>
    </item>
  </channel>
</rss>

