Lotus Symphony 1.2


Public 陳述式 [執行時期]

在模組層次上 (即不是在子常式或函數中) 宣告變數或陣列,這樣變數和陣列在所有的程式庫和模組中才都有效。

語法:

Public VarName[(start To end)] [As VarType][, VarName2[(start To end)] [As VarType][,...]]

範例:

Public iPublicVar As Integer

Sub ExamplePublic

iPublicVar = iPublicVar + 1

MsgBox iPublicVar

End sub


其他文件 | 商標