<?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: Insert value to Associative Array in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2644#M2644</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 19 Nov 2010 13:30:41 GMT</pubDate>
    <dc:creator>mattf</dc:creator>
    <dc:date>2010-11-19T13:30:41Z</dc:date>
    <item>
      <title>Insert value to Associative Array</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2643#M2643</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;The following code works in JMP 9 but not JMP 8:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Basically I need to put a value into a particular position in an associative array.  It appears that in JMP 8, to build an associative array you need to insert values sequentially with INSERT INTO.&lt;BR /&gt;&lt;BR /&gt;I have a workaround but I would really like to use this syntax, which is much more convenient.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 17 Nov 2010 19:27:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2643#M2643</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2010-11-17T19:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insert value to Associative Array</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2644#M2644</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Nov 2010 13:30:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2644#M2644</guid>
      <dc:creator>mattf</dc:creator>
      <dc:date>2010-11-19T13:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Insert value to Associative Array</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2645#M2645</link>
      <description>Hi Matt,&lt;BR /&gt;&lt;BR /&gt;That doesn't work - I want put the string "hello world" into the list pointed to by x["one"], in the first position.  What I want to end up with is:&lt;BR /&gt;&lt;BR /&gt;print(x["one"])&lt;BR /&gt;&lt;BR /&gt;{"hello world", "a", "b"}&lt;BR /&gt;&lt;BR /&gt;I have a workaround in place - I was curious if there was a JMP version 8 syntax that I wasn't aware of.  The syntax I showed works in version 9 but not 8.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 19 Nov 2010 16:03:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2645#M2645</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2010-11-19T16:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert value to Associative Array</title>
      <link>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2646#M2646</link>
      <description>Yes,&lt;BR /&gt;&lt;BR /&gt;Now I see:&lt;BR /&gt;The below works - but coincidenently Insert replaces the first record - does order matter?&lt;BR /&gt;&amp;lt;-&lt;BR /&gt;x = associative array();&lt;BR /&gt;x["one"] = {"", "a", "b"};&lt;BR /&gt;x["two"] = {"", "d", "e"};&lt;BR /&gt;&lt;BR /&gt;print(x);&lt;BR /&gt;&lt;BR /&gt;newx = Remove(x, "one");&lt;BR /&gt;newx &amp;lt;&amp;lt; Insert("Hello World", "a", "b");&lt;BR /&gt;&lt;BR /&gt;print(newx);&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;&lt;BR /&gt;produces&lt;BR /&gt;x&lt;BR /&gt;Associative Array({{"one", {"", "a", "b"}}, {"two", {"", "d", "e"}}})&lt;BR /&gt;&lt;BR /&gt;newx &lt;BR /&gt;Associative Array({{"Hello World", "a"}, {"two", {"", "d", "e"}}})&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bset,&lt;BR /&gt;-Matt</description>
      <pubDate>Fri, 19 Nov 2010 19:58:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Insert-value-to-Associative-Array/m-p/2646#M2646</guid>
      <dc:creator>mattf</dc:creator>
      <dc:date>2010-11-19T19:58:29Z</dc:date>
    </item>
  </channel>
</rss>

