Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Option Base StatementThis standard VB statement specifies the default lower bound to use for array subscripts. SyntaxReturnsUsageIf no Option Base statement is specified, the default lower bound for array subscripts is 0. The Option Base statement is not allowed inside a procedure and must precede any use of arrays in the module. Only one Option Base statement is allowed per module. It must be placed in the (general) (declarations) section in the Siebel VB Editor. Option Explicit ExampleThis example resizes an array if the user enters more data than can fit in the array. It uses LBound and UBound to determine the existing size of the array and ReDim to resize it. Option Base sets the default lower bound of the array to 1. Option Base 1 See AlsoDim Statement |
Siebel VB Language Reference |