<?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: Renaming multiple data table from last word of current table name in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Renaming-multiple-data-table-from-last-word-of-current-table/m-p/695021#M88018</link>
    <description>&lt;P&gt;Why does it prompt an error like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;too many arguments{40} in access or evaluation of 'For' , For/*###*/(w = 1, w &amp;lt;= N Table(), w++, dtName = Word(&lt;BR /&gt;-1,&lt;BR /&gt;Data Table( w ) &amp;lt;&amp;lt; get name,&lt;BR /&gt;"-"&lt;BR /&gt;), Data Table( w ) &amp;lt;&amp;lt; Set Name( dtName ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- EDIT ---&lt;/P&gt;&lt;P&gt;I replaced the comma after the Word function with ; and is working now&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For (w = 1, w &amp;lt;= N Table(), w++,
		dtName = Word(-1, Data Table(w) &amp;lt;&amp;lt; get name, "-");
		Data Table(w) &amp;lt;&amp;lt; Set Name(dtName);
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 01:45:54 GMT</pubDate>
    <dc:creator>UserID16644</dc:creator>
    <dc:date>2023-11-07T01:45:54Z</dc:date>
    <item>
      <title>Renaming multiple data table from last word of current table name</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-multiple-data-table-from-last-word-of-current-table/m-p/695001#M88016</link>
      <description>&lt;P&gt;Hi, I am trying to rename multiple data table because my data table name are in directory forms. I would want to rename them according to their folder names (will be getting from the last character of the directory)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data table name:&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\Desktop\Table1&lt;/P&gt;&lt;P&gt;C:\Users\Desktop\Table2&lt;/P&gt;&lt;P&gt;C:\Users\Desktop\Table3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using Word function to get the last word from the file name, but doesn't work. Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For (w = 1, w &amp;lt;= N Table(), w++,
		dtName = Word(-1, Data Table(w), "\"),
		Data Table(w) &amp;lt;&amp;lt; Set Name(dtName);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The resulting data table names should be: Table1, Table2, Table3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 01:23:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-multiple-data-table-from-last-word-of-current-table/m-p/695001#M88016</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-11-07T01:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple data table from last word of current table name</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-multiple-data-table-from-last-word-of-current-table/m-p/695016#M88017</link>
      <description>&lt;P&gt;You need to retrieve the data table name&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For (w = 1, w &amp;lt;= N Table(), w++,
		dtName = Word(-1, Data Table(w) &amp;lt;&amp;lt; get name, "-"),
		Data Table(w) &amp;lt;&amp;lt; Set Name(dtName);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2023 01:25:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-multiple-data-table-from-last-word-of-current-table/m-p/695016#M88017</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-11-07T01:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming multiple data table from last word of current table name</title>
      <link>https://community.jmp.com/t5/Discussions/Renaming-multiple-data-table-from-last-word-of-current-table/m-p/695021#M88018</link>
      <description>&lt;P&gt;Why does it prompt an error like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;too many arguments{40} in access or evaluation of 'For' , For/*###*/(w = 1, w &amp;lt;= N Table(), w++, dtName = Word(&lt;BR /&gt;-1,&lt;BR /&gt;Data Table( w ) &amp;lt;&amp;lt; get name,&lt;BR /&gt;"-"&lt;BR /&gt;), Data Table( w ) &amp;lt;&amp;lt; Set Name( dtName ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- EDIT ---&lt;/P&gt;&lt;P&gt;I replaced the comma after the Word function with ; and is working now&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For (w = 1, w &amp;lt;= N Table(), w++,
		dtName = Word(-1, Data Table(w) &amp;lt;&amp;lt; get name, "-");
		Data Table(w) &amp;lt;&amp;lt; Set Name(dtName);
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 01:45:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Renaming-multiple-data-table-from-last-word-of-current-table/m-p/695021#M88018</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-11-07T01:45:54Z</dc:date>
    </item>
  </channel>
</rss>

