Which function is used to get the smallest subscript of an array in VBScript?
VBScript LBound Function
The LBound function returns the smallest subscript for the indicated dimension of an array. Note: The LBound for any dimension is ALWAYS and ALWAYS 0.
Tip: Use the LBound function with the UBound function to determine the size of an array.
VBScript LBound Function Syntax is as follows:
arrayname: arrayname is Required. The name of the array variable
dimension: dimension is Optional. Which dimension's lower bound to return
first dimension = 1, second dimension = 2, and so on. Default is always 1
VBScript LBound Function Example is depicted as follows:
The output of the above code will be as follows:
How will you create dynamic-array variables in VBScript?
Which function is used to compare two strings in VBScript?
Which function is used to reverse String in VBscript?
Pick Out the correct way of creating an array in VBscript?