Specifies a default lower bound for array declarations
Syntax
Option Base base_subscript
Parameters
base_subscript
an integral value
Description
Option Base is a statement that sets the default lower bound for any following array declarations. This default remains in effect for the rest of the module in which Option Base is used, and can be overridden by declaring arrays with an explicit lower bound, or with another Option Base statement.
Example
'' Compile with the "-lang qb" or "-lang fblite" compiler switches
Dim foo(10) As Integer ' declares an array with indices 0-10
Option Base 5
Dim bar(15) As Integer ' declares an array with indices 5-15
Dim baz(0 To 4) As Integer ' declares an array with indices 0-4
Dialect Differences
Differences from QB
See also