zoukankan      html  css  js  c++  java
  • powerDesigner 把name项添加到注释

    '使用方法使用方法
    'PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
     
    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
          tab.comment   =   tab.name
          Dim   col   '   running   column
          for   each   col   in   tab.columns
            col.comment=   col.name
          next
        end   if
      next
     
      Dim   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
  • 相关阅读:
    在Android中,使用Kotlin的 API请求简易方法
    Android开发者的Kotlin:书
    用Kotlin开发Android应用(IV):定制视图和Android扩展
    用Kotlin开发Android应用(III):扩展函数和默认值
    zookeeper应用
    BigDecimal的setScale()方法无效(坑)
    Linux命令详解之—less命令
    jdk10 var定义变量的由来
    Mysql DataPacketTooBigException异常处理
    JDK自带的监控工具方法
  • 原文地址:https://www.cnblogs.com/jamyxu/p/6038166.html
Copyright © 2011-2022 走看看