DIAdem Help

Method: LBound for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: LBound for VBS

Specifies the smallest index of an array.

vLBound = Object.LBound(arrayname, [Dimension])
ObjectVBS
Object with this method. You do not need to specify this object.
arraynameVariant
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.
vLBoundVariant
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

Related Topics

Array | Dim | Private | Public | ReDim | IsArray | Erase | LBound | UBound

Log in to get a better experience