Anweisung Option Base

Legt die Standard-Untergrenze für Arrays als 0 beziehungsweise 1 fest.

Syntax:

Option Base { 0 | 1}

Parameter:

Warnsymbol

Diese Anweisung muss in einem Modul vor dem ausführbaren Programmcode stehen.


Beispiel:

Option Base 1

Sub ExampleOptionBase

   Dim sVar(20) As String

   MsgBox LBound(sVar())

End Sub