<?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 I am trying to delete a geodatabase table (ITable) using VBA. If I have the table location and table name, what code do I use? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/i-am-trying-to-delete-a-geodatabase-table-itable/m-p/532488#M14364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the code I use to get the table location which is currently selected in catalog window of arcmap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim tableName As String&lt;BR /&gt;tableName = PermitID.Value &amp;nbsp; ' permitID is the name of the table which I get from a text box within a userform&lt;BR /&gt; &lt;BR /&gt;Dim pGxApp As IGxApplication&lt;BR /&gt;Set pGxApp = Application&lt;/P&gt;&lt;P&gt;Dim pSelObj As IGxObject&lt;BR /&gt;Set pSelObj = pGxApp.SelectedObject&lt;/P&gt;&lt;P&gt;Dim Location As String&lt;BR /&gt;Location = pSelObj.FullName &amp;amp; "\" &amp;amp; PermitID.Value 'read the full path to workspace&lt;/P&gt;&lt;P&gt;Dim pFeatureWorkspace As IFeatureWorkspace&lt;BR /&gt; &lt;BR /&gt;Dim pAccessFactory As IWorkspaceFactory&lt;BR /&gt;Set pAccessFactory = New AccessWorkspaceFactory&lt;/P&gt;&lt;P&gt;Dim pAccessWorkspace As IWorkspace&lt;BR /&gt;Set pAccessWorkspace = pAccessFactory.OpenFromFile(pSelObj.FullName, 0)&lt;BR /&gt;Set pFeatureWorkspace = pAccessWorkspace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kill (Location) ' trying to delete the table - I don't know how&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 17:57:36 GMT</pubDate>
    <dc:creator>PriestonLobo</dc:creator>
    <dc:date>2017-05-10T17:57:36Z</dc:date>
    <item>
      <title>I am trying to delete a geodatabase table (ITable) using VBA. If I have the table location and table name, what code do I use?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/i-am-trying-to-delete-a-geodatabase-table-itable/m-p/532488#M14364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the code I use to get the table location which is currently selected in catalog window of arcmap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim tableName As String&lt;BR /&gt;tableName = PermitID.Value &amp;nbsp; ' permitID is the name of the table which I get from a text box within a userform&lt;BR /&gt; &lt;BR /&gt;Dim pGxApp As IGxApplication&lt;BR /&gt;Set pGxApp = Application&lt;/P&gt;&lt;P&gt;Dim pSelObj As IGxObject&lt;BR /&gt;Set pSelObj = pGxApp.SelectedObject&lt;/P&gt;&lt;P&gt;Dim Location As String&lt;BR /&gt;Location = pSelObj.FullName &amp;amp; "\" &amp;amp; PermitID.Value 'read the full path to workspace&lt;/P&gt;&lt;P&gt;Dim pFeatureWorkspace As IFeatureWorkspace&lt;BR /&gt; &lt;BR /&gt;Dim pAccessFactory As IWorkspaceFactory&lt;BR /&gt;Set pAccessFactory = New AccessWorkspaceFactory&lt;/P&gt;&lt;P&gt;Dim pAccessWorkspace As IWorkspace&lt;BR /&gt;Set pAccessWorkspace = pAccessFactory.OpenFromFile(pSelObj.FullName, 0)&lt;BR /&gt;Set pFeatureWorkspace = pAccessWorkspace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kill (Location) ' trying to delete the table - I don't know how&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 17:57:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/i-am-trying-to-delete-a-geodatabase-table-itable/m-p/532488#M14364</guid>
      <dc:creator>PriestonLobo</dc:creator>
      <dc:date>2017-05-10T17:57:36Z</dc:date>
    </item>
  </channel>
</rss>

