powerdesigner显示列描述信息
来源:互联网 发布:如何关闭淘宝手机店铺 编辑:程序博客网 时间:2024/05/20 06:07
将Comment中的字符COPY至Name中
--------------------------------------------------
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
Private 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
next
Dim 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
------------------------------------------------------
以上代码是VB脚本,在PowerDesigner中使用方法为:
PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
将代码Copy进去执行就可以了,是对整个CDM或PDM进行操作
- powerdesigner显示列描述信息
- Powerdesigner显示列名
- powerdesigner显示所有表字段信息
- PowerDesigner实用功能介绍1—设置视图显示列
- 使用powerdesigner显示表和列的注释
- 使用powerdesigner显示表和列的注释
- PowerDesigner设计表时显示注释列Comment
- 使用powerdesigner显示表和列的注释
- PowerDesigner设计表时显示注释列Comment
- PowerDesigner设计表时显示注释列Comment
- 关于sql为表添加描述信息,为列添加描述信息的写法
- PowerDesigner的创建使用及如何设置显示注释信息
- MYSQL 显示所有列的所有信息
- datagrid 列鼠标悬浮显示全部信息
- 在PowerDesigner的PDM图形窗口中显示数据列的中文注释
- 在PowerDesigner的PDM图形窗口中显示数据列的中文注释
- PowerDesigner的PDM图形窗口中显示数据列的中文注释
- 在PowerDesigner的PDM图形窗口中显示数据列的中文注释
- html模板生成静态页面及模板分页处理
- 96. Unique Binary Search Trees(通过观察递推式意思找递推关系)
- web.xml較好的頭文件
- JZOJsenior3455.【NOIP2013模拟联考3】库特的向量(code)
- Java 入门知识
- powerdesigner显示列描述信息
- STL-queue解ALDS1_1_3_B:Queue
- [NOIP2016真题]蚯蚓
- HDU(1004)Let the Balloon Rise
- CNN--based Network Architectures
- 迷宫算法的细化(C++)
- memcache 雪崩现象
- HDU 6158 计算几何 笛卡尔定理 + 韦达定理
- 国赛----可见光室内定位