Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' the current model
' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model. "
Else
ProcessFolder mdl
End If
' This routine copy name into comment for each table, each column and each view
' of the current folder
Private sub ProcessFolder(folder)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
Dim col ' running column
for each col in tab.columns
if col.code="VERIFY_CODE" then
col.mandatory= false
end if
if col.code="LAST_EDIT_TIME" then
col.mandatory= false
end if
if col.code="LAST_EDITOR" then
col.mandatory= false
end if
if col.code="LAST_EDIT_PROCESS" then
col.mandatory= false
end if
next
end if
next
end sub
PD中将修改表列的Mandory属性改为false VBS(备忘)
最新推荐文章于 2022-07-22 13:46:02 发布