on ‎2020 Aug 08 8:48 PM
Hi,
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
Dim mdl ' the current model Set mdl = ActiveModel If (mdl Is Nothing) Then
MsgBox "There is no Active Model"
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The Active Model is not a PDM."
else
Dim fldr, tab
Set fldr = ActiveDiagram.Parent
For Each tab In fldr.children
if tab.ObjectType = "Table" then
flag = false
for each col in tab.columns
if left(col.code,1) = "_" then
col.remove
end if
next
end if
next
end if
Request clarification before answering.
Hello,
Try col.delete.
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.