<?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 Creating an array in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2282#M2282</link>
    <description>I'm trying to create a simple array a[1] = "string 1".....  a[10] = "string 10"&lt;BR /&gt;&lt;BR /&gt;I'm am creating this array by reading values from a table, while looping through with a FOR statement.   I'm getting an error with the first reference to a[1].  (actually a&lt;J&gt; and j is initialized and incremented correctly.&lt;BR /&gt;&lt;BR /&gt;what am i doing wrong?  I tried going though help, but I'm not finding what I'm looking for.  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/J&gt;</description>
    <pubDate>Fri, 13 Aug 2010 21:21:31 GMT</pubDate>
    <dc:creator>whom</dc:creator>
    <dc:date>2010-08-13T21:21:31Z</dc:date>
    <item>
      <title>Creating an array</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2282#M2282</link>
      <description>I'm trying to create a simple array a[1] = "string 1".....  a[10] = "string 10"&lt;BR /&gt;&lt;BR /&gt;I'm am creating this array by reading values from a table, while looping through with a FOR statement.   I'm getting an error with the first reference to a[1].  (actually a&lt;J&gt; and j is initialized and incremented correctly.&lt;BR /&gt;&lt;BR /&gt;what am i doing wrong?  I tried going though help, but I'm not finding what I'm looking for.  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/J&gt;</description>
      <pubDate>Fri, 13 Aug 2010 21:21:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2282#M2282</guid>
      <dc:creator>whom</dc:creator>
      <dc:date>2010-08-13T21:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an array</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2283#M2283</link>
      <description>You probably need "a" to be a list. Try preceding your code with a line: a = {};&lt;BR /&gt;&lt;BR /&gt;Then take a look in the scripting pdf docs for "Lists", "Associative Arrays", and Matrices (or Matrix).</description>
      <pubDate>Sat, 14 Aug 2010 20:23:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2283#M2283</guid>
      <dc:creator>mpb</dc:creator>
      <dc:date>2010-08-14T20:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an array</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2284#M2284</link>
      <description>thanks, that resolved my problem!</description>
      <pubDate>Mon, 16 Aug 2010 15:46:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2284#M2284</guid>
      <dc:creator>whom</dc:creator>
      <dc:date>2010-08-16T15:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an array</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2285#M2285</link>
      <description>You don't need to use a For loop to get column values.  Might be quicker to use GET VALUES:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;dt&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);"&amp;gt;open&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;(&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: purple;"&amp;gt;"$SAMPLE_DATA\Big&lt;BR /&gt;Class.jmp"&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;)&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: green;"&amp;gt;/*&lt;BR /&gt;Two ways to reference a column&lt;BR /&gt;are shown: &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: green;"&amp;gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: green;"&amp;gt;The&lt;BR /&gt;first way is useful if the&lt;BR /&gt;column name has funny characters, like a slash&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: green;"&amp;gt;*/&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;name_list&lt;SPAN&gt;&lt;BR /&gt; style=""&amp;gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);"&amp;gt;column&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;(&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;dt&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: purple;"&amp;gt;"name"&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;)&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;get values&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;age_list&lt;SPAN&gt;&lt;BR /&gt; style=""&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);"&amp;gt;column&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;(&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;dt&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: purple;"&amp;gt;"age"&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;)&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;get values&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: green;"&amp;gt;/*&lt;BR /&gt;If the column is a&lt;BR /&gt;straightforward name just reference it directly */&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;sex_list&lt;SPAN&gt;&lt;BR /&gt; style=""&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;sex&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;get values&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;height_list&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;height&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;get values&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;weight_list&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;weight&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;BR /&gt;get values&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: navy;"&amp;gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; style="font-size: 10pt; font-family: "Courier New"; color: black;"&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 16 Aug 2010 18:43:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-an-array/m-p/2285#M2285</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2010-08-16T18:43:28Z</dc:date>
    </item>
  </channel>
</rss>

