您好,登錄后才能下訂單哦!
本篇內(nèi)容介紹了“如何編寫PowerDesigner表字段變大寫的VB腳本”的有關(guān)知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細閱讀,能夠?qū)W有所成!
高級用法,字段字母全部變?yōu)榇髮?,不用手動一個一個改
Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' 取得當(dāng)前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) '處理表 Dim Tab for each Tab in folder.tables tab.code = UCase(tab.code) '修改字段名 Dim col for each col in tab.columns col.code= UCase(col.code) next '修改索引名 Dim idx for each idx in tab.indexes idx.code= UCase(idx.code) next '修改主鍵名 Dim key for each key in tab.keys key.code= UCase(key.code) next next end sub
腳本執(zhí)行:tools -> command -> Edit/Run Script
“如何編寫PowerDesigner表字段變大寫的VB腳本”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注億速云網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實用文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。