LBound

Return the smallest available subscript for an array dimension.

Syntax 
      LBound(arrayname[, dimension])

Key
   arrayname    The name of the array variable

   dimension    The array dimension as a whole number
                1 for the first dimension, 2 for the second etc
                (default=1)

The LBound function is used with the UBound Function to determine the size of an array. Use UBound to find the upper limit of an array dimension. The default lower bound for any dimension is always 0.

Example

Dim Arr(5,10,12)
result = LBound(Arr, 1)
WScript.Echo result

“Who looks outside, dreams; who looks inside, awakes” - Carl Gustav Jung

Related:

Array(el1,el2,el3) - Add values to an Array variable
Dim - Declare a new variable or array variable
UBound - Return the largest subscript for an array dimension
Equivalent Powershell command: $arrDemo.getupperbound(0) or $arrDemo.length-1


© Copyright SS64.com 1999-2014
Some rights reserved