Option Base Statement

將陣列的標準下邊界定義為 0 或 1。

語法

Option Base { 0 | 1}

參數:

警告圖示

此陳述式必須位於模組中的可執行程式碼之前。


示例:

Option Base 1

Sub ExampleOptionBase

   Dim sVar(20) As String

   MsgBox LBound(sVar())

End Sub