Example -
Below code will find the length of array in QTP.
print (ubound(arr) + 1)
Ubound returns the last index in array - so length of array will be +1. This will be total number of elements in array.
More interview questions and answers on arrays in QTP are given below.
Below code will find the length of array in QTP.
print (ubound(arr) + 1)
Ubound returns the last index in array - so length of array will be +1. This will be total number of elements in array.
More interview questions and answers on arrays in QTP are given below.
- What is the difference between dictionary and array in QTP?
- How to create dynamic 2 dimensional array in QTP?
- How to sort array of strings in qtp?
- How to create array of dictionary in qtp?
- How to define or declare array in qtp?
- How to return array from function in qtp?
- How to find the length of array in qtp?
- How to find the size of array in qtp?
- Explain the ubound function in qtp.
- Explain the split function in qtp with example.
- What is dotnetfactory object in qtp?
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs