<?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 Number of elements in the tree structure in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Number-of-elements-in-the-tree-structure/m-p/471506#M71604</link>
    <description>&lt;P&gt;Okay, this is probably another easy one but stumped once again.&amp;nbsp; How do I determine how many boxes are in an analysis' tree?&amp;nbsp; I want to loop through the boxes to get values but don't see something I can return and then use with n items() or &amp;lt;=Variable&amp;nbsp;in the for loop.&amp;nbsp; Also, is there a way to find the number of a specific type of box (such as col list box only)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:13:49 GMT</pubDate>
    <dc:creator>shampton82</dc:creator>
    <dc:date>2023-06-09T18:13:49Z</dc:date>
    <item>
      <title>Number of elements in the tree structure</title>
      <link>https://community.jmp.com/t5/Discussions/Number-of-elements-in-the-tree-structure/m-p/471506#M71604</link>
      <description>&lt;P&gt;Okay, this is probably another easy one but stumped once again.&amp;nbsp; How do I determine how many boxes are in an analysis' tree?&amp;nbsp; I want to loop through the boxes to get values but don't see something I can return and then use with n items() or &amp;lt;=Variable&amp;nbsp;in the for loop.&amp;nbsp; Also, is there a way to find the number of a specific type of box (such as col list box only)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:13:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-of-elements-in-the-tree-structure/m-p/471506#M71604</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2023-06-09T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Number of elements in the tree structure</title>
      <link>https://community.jmp.com/t5/Discussions/Number-of-elements-in-the-tree-structure/m-p/471525#M71605</link>
      <description>&lt;P&gt;You can use Xpath() for those kind of questions.&amp;nbsp; Xpath is a language that interrogates xml, which is actually the base of the Tree Structure in JSL.&lt;/P&gt;
&lt;P&gt;Xpath is an independent language.&amp;nbsp; You can search the internet for training for it, if you want to really use it.&lt;/P&gt;
&lt;P&gt;Here is a simple example of finding the number of TextBoxes in a Display Tree.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
//This message applies to all display box objects
win = New Window( "test", Text Box( "my test" ) , text box("aaa"));
count=nitems(win &amp;lt;&amp;lt; xpath( "//TextBox" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 00:51:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Number-of-elements-in-the-tree-structure/m-p/471525#M71605</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-21T00:51:07Z</dc:date>
    </item>
  </channel>
</rss>

