powerdesigner comment 写到 name 和 name 写到 comment
来源:互联网 发布:低空突防航迹规划算法 编辑:程序博客网 时间:2024/05/26 09:53
comment 和 name大都是相同的,利用VB可以将两个来回转换,特地找来这两个语句,以供参考
- 将Name中的字符COPY至Comment中
Option Explicit
ValidationMode = True
InteractiveMode = im_BatchDim 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
tab.comment = tab.name
Dim col ' running column
for each col in tab.columns
col.comment= col.name
next
end if
nextDim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
end if
next' go into the sub-packages
'------------------------------------我是分隔线--------------------------------
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub - 代码二:将Comment中的字符COPY至Name中
Option Explicit
ValidationMode = True
InteractiveMode = im_BatchDim 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 IfPrivate sub ProcessFolder(folder)
On Error Resume Next
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
tab.name = tab.comment
Dim col ' running column
for each col in tab.columns
if col.comment="" then
else
col.name= col.comment
end if
next
end if
nextDim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.name = view.comment
end if
next' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
- PowerDesigner Comment写到name 和name写到Comment
- powerdesigner comment 写到 name 和 name 写到 comment
- PowerDesigner 把Comment写到name中 和把name写到Comment中
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和 把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 把Comment写到name中 和把name写到Comment中 pd7以后版本可用
- PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
- PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
- PowerDesigner 同步Name到Comment 及 同步 Comment 到Name
- 647. Palindromic Substrings
- push进队列的C2075错误
- 讯飞AIUI apiWeb java
- 关于@JsonFormat的使用
- 用PHP快速开发一个爬虫,用到的开源库
- powerdesigner comment 写到 name 和 name 写到 comment
- github命令大全
- 封装一个小JS模块
- rand和srand随机函数的用法
- 4用于cifar10的卷积神经网络-4.22为计算图中的非线性全连接层的权重添加L2损失
- 总结echarts的常用手法
- SAP 修改字段长度
- 能看懂就看吧
- Java transient 关键字解释