VBA 选项关键字
通过明确声明边界而不是让编译器回退到 Option Base {0|1}
声明来更容易控制数组的边界。这可以这样做:
Dim myStringsA(0 To 5) As String '// This has 6 elements (0 - 5)
Dim myStringsB(1 To 5) As String '// This has 5 elements (1 - 5)
Dim myStringsC(6 To 9) As String '// This has 3 elements (6 - 9)