Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > LBound FunctionThis standard VB function returns the lower bound of the subscript range for an array. SyntaxLBound(arrayname [, dimension] ) ReturnsThe lower bound (lowest index number) of dimension dimension of arrayname. UsageThe dimensions of an array are numbered starting with 1. If the dimension is not specified, 1 is the default. LBound can be used with UBound to determine the length of an array. 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. Sub Button_Click See AlsoDim Statement |
Siebel VB Language Reference |