Automation testing QTP with VB Script functions Interview questions


Total available count: 68
Subject - Software Testing
Subsubject - Automation testing QTP with VB Script functions

UBound Function?

UBound function returns the largest available subscript for the indicated dimension of an array.

Syntax: UBound(arrayname[, dimension])

Arguments:
arrayname: (Required) Name of the array variable; follows standard variable naming conventions.
dimension: (Optional) Whole number indicating which dimension's upper bound is returned. Use 1 for the first dimension, 2 for the second, and so on. If dimension is omitted, 1 is assumed.  

Example: 

'UBound 
Dim UArr
UArr = Array(10,20,30)
Print  Ubound(UArr,1)                 output: 2
''multidimensional array
Dim  Umarr(3,2,4)
Print  UBound(Umarr,1)       output: 3
Print  UBound(Umarr,2)       output: 2
Print  UBound(Umarr,3)       output: 4

 




Next 5 interview question(s)

1
DateFunction?
2
Time Function?
3
DateAddFunction?
4
DateDiffFunction?
5
DatePart Function?

Comments