<?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 string - or function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/string-or-function/m-p/926933#M108474</link>
    <description>&lt;P&gt;In a code, the coding for the expression handling was wrong and produced a surprising result.&lt;BR /&gt;&lt;BR /&gt;I reduced it to an interaction between "&lt;FONT face="courier new,courier"&gt;x()"&lt;/FONT&gt;&amp;nbsp;[inside &lt;FONT face="courier new,courier"&gt;Variables (x(:column))&lt;/FONT&gt;] and a variable &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x= "hello";
type(x); // -&amp;gt; string
X(5) // -&amp;gt; "hello"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After defining a variable &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt;, I can use it as a function &lt;FONT face="courier new,courier"&gt;x(...)&lt;/FONT&gt; - with an arbitrary argument &lt;BR /&gt;...&amp;nbsp; and JMP will return the content of &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;somehow the inverse of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col &amp;lt;&amp;lt; rerun formula;
// short for 
col &amp;lt;&amp;lt; rerun formula();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.1/?os=win&amp;amp;source=application#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/17.1/?os=win&amp;amp;source=application#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1769601568555.png" style="width: 767px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/92446i393F44AD86CBC9DD/image-dimensions/767x21?v=v2" width="767" height="21" role="button" title="hogi_0-1769601568555.png" alt="hogi_0-1769601568555.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2026 14:52:46 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2026-01-28T14:52:46Z</dc:date>
    <item>
      <title>string - or function</title>
      <link>https://community.jmp.com/t5/Discussions/string-or-function/m-p/926933#M108474</link>
      <description>&lt;P&gt;In a code, the coding for the expression handling was wrong and produced a surprising result.&lt;BR /&gt;&lt;BR /&gt;I reduced it to an interaction between "&lt;FONT face="courier new,courier"&gt;x()"&lt;/FONT&gt;&amp;nbsp;[inside &lt;FONT face="courier new,courier"&gt;Variables (x(:column))&lt;/FONT&gt;] and a variable &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x= "hello";
type(x); // -&amp;gt; string
X(5) // -&amp;gt; "hello"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After defining a variable &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt;, I can use it as a function &lt;FONT face="courier new,courier"&gt;x(...)&lt;/FONT&gt; - with an arbitrary argument &lt;BR /&gt;...&amp;nbsp; and JMP will return the content of &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;somehow the inverse of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col &amp;lt;&amp;lt; rerun formula;
// short for 
col &amp;lt;&amp;lt; rerun formula();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.1/?os=win&amp;amp;source=application#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/17.1/?os=win&amp;amp;source=application#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1769601568555.png" style="width: 767px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/92446i393F44AD86CBC9DD/image-dimensions/767x21?v=v2" width="767" height="21" role="button" title="hogi_0-1769601568555.png" alt="hogi_0-1769601568555.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 14:52:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/string-or-function/m-p/926933#M108474</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-28T14:52:46Z</dc:date>
    </item>
  </channel>
</rss>

