Option Base Statement

Defines the default lower boundary for arrays as 0 or 1.

แƒกแƒ˜แƒœแƒขแƒแƒฅแƒกแƒ˜


Option Base { 0 | 1}

Parameters:

แƒ’แƒแƒ•แƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒฎแƒแƒขแƒฃแƒšแƒ

This statement must be added before the executable program code in a module.


แƒ›แƒแƒ’แƒแƒšแƒ˜แƒ—แƒ˜:


Option Base 1
Sub ExampleOptionBase
   Dim sVar(20) As String
   MsgBox LBound(sVar())
End Sub