Option Base Statement

将数组的默认下边界定义为 0 或 1。

语法:

Option Base { 0 | 1}

参数:

警告图标

此语句必须位于模块中的可执行程序代码之前。


示例:

Option Base 1

Sub ExampleOptionBase

   Dim sVar(20) As String

   MsgBox LBound(sVar())

End Sub