Which function is used to get the largest subscript of an array in VBScript?
VBScript UBound Function
The UBound function returns the largest subscript for the indicated dimension of an array.
Tip: Use the UBound function with the LBound function to determine the size of an array.
VBScript UBound 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 UBound Function Example is depicted as follows:
The output of the above code will be as follows:
Which function is used to get the smallest subscript of an array in VBScript?
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?