Method: LBound for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: LBound for VBS
Method: LBound for VBS
Specifies the smallest index of an array.
vLBound = Object.LBound(arrayname, [Dimension])
| Object | VBS Object with this method. You do not need to specify this object. |
| arrayname | Variant Specifies the name of the array. You can enter the dimension as an optional parameter. Use the value 1 for the first dimension, the value 2 for the second dimension, and so on. |
| [Dimension] | Specifies the dimension of the array for which DIAdem returns the greatest index. If you do not enter a value, DIAdem uses the first dimension. |
| vLBound | Variant Specifies the smallest available index of an array. |
The following example specifies the smallest index of an array:
Dim MyArray MyArray = Array("This","is","an","example") Call MsgBox(LBound(MyArray)) ' Returns 0
See Also
Related Topics
Array | Dim | Private | Public | ReDim | IsArray | Erase | LBound | UBound