<?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: JSL: Index and Navigate through All Tables Open in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Index-and-Navigate-through-All-Tables-Open-in-JMP/m-p/41332#M24122</link>
    <description>&lt;P&gt;The function N Table() will return the number of data tables open. You can then get their names by looping through&lt;/P&gt;
&lt;P&gt;for(i=1,i&amp;lt;=N Table(),i++,name=data table(i)&amp;lt;&amp;lt;get name)&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 18:59:46 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-06-28T18:59:46Z</dc:date>
    <item>
      <title>JSL: Index and Navigate through All Tables Open in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Index-and-Navigate-through-All-Tables-Open-in-JMP/m-p/41331#M24121</link>
      <description>&lt;P&gt;I'm building a JMP App and I need to be able to return the number of tables I have open as well as navigate through multiple tables so the user can select a table to work with. Say you have 3 tables open and you build a spin arrow in the app builder (up/down arrows). If you click up, the next table up becomes the Current Data Table, and similary for clicking down, the table down becomes the Current Data Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Index 1 - Table A&lt;/P&gt;&lt;P&gt;*click up*&lt;/P&gt;&lt;P&gt;Index 2 - Table B&lt;/P&gt;&lt;P&gt;*click up*&lt;/P&gt;&lt;P&gt;Index 3 - Table C&lt;/P&gt;&lt;P&gt;*click up*&lt;/P&gt;&lt;P&gt;Index 2 - Table B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using this code to index tables and find out how many tables are open. The error I'm receiving is that Data Table () cannot understand anything that is not a constant integer. Any time I&amp;nbsp;put a variable (for incrementing purposes) I receive back that Data Table cannot identify the inside of the parentheses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way the while statement works is if Data Table (1) can reference Table A/B/C, it will return "Table A/B/C", and when I call Type() on it, it returns "Table". So, by the time the while loop hits Data Table(4), theres no table to return a reference to, meaning there will be no type "Table" ending the while loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While( (Type( Data Table( i++ ) ) == "Table"),&lt;BR /&gt;numberOfTables++,&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;Print("Number of tables");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing "i" can be used for the arrow buttons mentioned before, and numberOfTables will give me a max value not to exceed for "i".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:43:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Index-and-Navigate-through-All-Tables-Open-in-JMP/m-p/41331#M24121</guid>
      <dc:creator>Brown</dc:creator>
      <dc:date>2017-06-28T18:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Index and Navigate through All Tables Open in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Index-and-Navigate-through-All-Tables-Open-in-JMP/m-p/41332#M24122</link>
      <description>&lt;P&gt;The function N Table() will return the number of data tables open. You can then get their names by looping through&lt;/P&gt;
&lt;P&gt;for(i=1,i&amp;lt;=N Table(),i++,name=data table(i)&amp;lt;&amp;lt;get name)&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:59:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Index-and-Navigate-through-All-Tables-Open-in-JMP/m-p/41332#M24122</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-28T18:59:46Z</dc:date>
    </item>
  </channel>
</rss>

