Automation testing QTP with VB Script functions Interview questions


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

LBound Function?

LBound function returns the smallest available subscript for the indicated dimension of an array.

Syntax: LBound(arrayname[, dimension])

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

Example: 

'LBound 
Dim LArr
LArr = Array(10,20,30)
Print  Lbound(LArr,1)                 output: 0
'multidimensional array
Dim  Lmarr(3,2)
Print  LBound(Lmarr,2)                output: 0

 




Next 5 interview question(s)

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

Comments