VBScript PowerDesigner使用手册

0、基本语法:参考W3cshool

Option Explicit 	' 置顶用来明确必须使用 dim、public 或 private 来声明变量。
Dim	arr(2)			' 声明容量为3的数组

' ---------------------------------------------------------------------------------------------------
' 2种程序:子程序和函数程序,用End结束
' ---------------------------------------------------------------------------------------------------
 Sub mysub(argument1,argument2)	' 子程序,可以无参
 	' some statements
 End Sub

 Function myfunction(argument1,argument2)		' 函数程序
	 ' some statements
	 myfunction=some value		' 程序名赋值的方式返回值
 End Function
 Call myfunction(argument1,argument2)	' 函数调用-1
 myfunction argument1,argument2			' 函数调用-2
 
' ---------------------------------------------------------------------------------------------------
' 条件语句,用End结束
' ---------------------------------------------------------------------------------------------------
If true Then alert("hello")		' 只有1句可以省略End If,否则不能省
If true Then
	 ' some statements
Else
	 ' some statements
End If

' ---------------------------------------------------------------------------------------------------
' 循环语句,用Next结束
' ---------------------------------------------------------------------------------------------------
For i = 0 To 5 [Step 1]		' 步进值Step
	document.write("The number is " & i & "<br />")
	If i = 5 Then Exit For	' 可以通过 Exit For 关键词退出 For...Next 语句
Next

For Each x In arr
	document.write(x & "<br />")
Next

1、PowerDesigner导出表结构为 Excel

1.1 所有表结构在同一个Sheet
1.2 每个表对应一个Sheet(Sheet1, Sheet2...)带链接目录

2、Excel表结构导入PowerDesigner

原文地址:https://www.cnblogs.com/andea/p/10886277.html