<?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>Question Re: Dropping a column from table using VB script in Powerdesigner in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/dropping-a-column-from-table-using-vb-script-in-powerdesigner/qaa-p/12266572#M4594809</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try col.delete.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 08:12:27 GMT</pubDate>
    <dc:creator>arnaud_laurent</dc:creator>
    <dc:date>2020-08-10T08:12:27Z</dc:date>
    <item>
      <title>Dropping a column from table using VB script in Powerdesigner</title>
      <link>https://community.sap.com/t5/technology-q-a/dropping-a-column-from-table-using-vb-script-in-powerdesigner/qaq-p/12266571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Anyone help me with script for dropping a column using vbscript in Powerdesigner? i used the following code snippet but it is throwing Object does not support&lt;/P&gt;
  &lt;P&gt;Dim mdl ' the current model Set mdl = ActiveModel If (mdl Is Nothing) Then&lt;BR /&gt; MsgBox "There is no Active Model"&lt;BR /&gt;ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then&lt;BR /&gt; MsgBox "The Active Model is not a PDM."&lt;BR /&gt;else&lt;BR /&gt; Dim fldr, tab&lt;BR /&gt; Set fldr = ActiveDiagram.Parent&lt;BR /&gt; For Each tab In fldr.children&lt;BR /&gt; &lt;BR /&gt; if tab.ObjectType = "Table" then&lt;BR /&gt; flag = false&lt;BR /&gt; for each col in tab.columns&lt;BR /&gt; if left(col.code,1) = "_" then&lt;BR /&gt; col.remove&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt;end if &lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 19:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dropping-a-column-from-table-using-vb-script-in-powerdesigner/qaq-p/12266571</guid>
      <dc:creator>former_member699267</dc:creator>
      <dc:date>2020-08-08T19:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dropping a column from table using VB script in Powerdesigner</title>
      <link>https://community.sap.com/t5/technology-q-a/dropping-a-column-from-table-using-vb-script-in-powerdesigner/qaa-p/12266572#M4594809</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try col.delete.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 08:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dropping-a-column-from-table-using-vb-script-in-powerdesigner/qaa-p/12266572#M4594809</guid>
      <dc:creator>arnaud_laurent</dc:creator>
      <dc:date>2020-08-10T08:12:27Z</dc:date>
    </item>
  </channel>
</rss>

