<?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: Programmatically rename a table and a layer in VBA in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51569#M1368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you'd have to parse the name and get the numeric value out of it.&amp;nbsp; Then do that numeric value + 1.&amp;nbsp; IDatasetName interface should offer some options for you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Jun 2010 14:25:49 GMT</pubDate>
    <dc:creator>RuchiraWelikala</dc:creator>
    <dc:date>2010-06-12T14:25:49Z</dc:date>
    <item>
      <title>Programmatically rename a table and a layer in VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51568#M1367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to programmatically rename an existing dbf table or a feature layer based on its existing name. For example if the name is table.dbf the new name will be table1.dbf and then if the existing table name is table1.dbf rename it to table3.dbf and so on. Similalry, for a feauture class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deme&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 13:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51568#M1367</guid>
      <dc:creator>DemetrisDemetriou</dc:creator>
      <dc:date>2010-06-12T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically rename a table and a layer in VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51569#M1368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you'd have to parse the name and get the numeric value out of it.&amp;nbsp; Then do that numeric value + 1.&amp;nbsp; IDatasetName interface should offer some options for you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 14:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51569#M1368</guid>
      <dc:creator>RuchiraWelikala</dc:creator>
      <dc:date>2010-06-12T14:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically rename a table and a layer in VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51570#M1369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, but my problem is how to get the max index number (i.e.10,11 etc.) among a series of file names e.g. table10.dbf, table11.dbf etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deme&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jun 2010 04:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51570#M1369</guid>
      <dc:creator>DemetrisDemetriou</dc:creator>
      <dc:date>2010-06-13T04:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically rename a table and a layer in VBA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51571#M1370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Deme, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, so the parsing still stands.&amp;nbsp; Unless you know the naming convention of the tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's say there are 6 tables all together.&amp;nbsp; And the naming convention goes Table1, Table2, Table3 and so on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can simply count the number of tables and name the table based on that count.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if the naming convention is not certain, then you have to parse the table name and get the number value out of it.&amp;nbsp; This will essentially be a loop that checks each table name.&amp;nbsp; Assign the numeric value to a variable each time the loop runs.&amp;nbsp; Then have an if statement that reassigns the variable to the numeric value if the new one value (of the tablename being tested) is larger than the old value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use regular expressions (if you're using .NET) to do the parsing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully I understood your problem a little better (lol probably not though!)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jun 2010 14:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/programmatically-rename-a-table-and-a-layer-in-vba/m-p/51571#M1370</guid>
      <dc:creator>RuchiraWelikala</dc:creator>
      <dc:date>2010-06-14T14:00:43Z</dc:date>
    </item>
  </channel>
</rss>

