You can return an array from a function in QTP like a normal scalar variable.
Example -
Below code illustrates more .
val = abc() ' val will be array variable with 1,2,3 elements.
Function abc()
abc = array(1,2,3)
End Function
This is how we can return array from function in QTP
More interview questions and answers on arrays in QTP are given below.
Example -
Below code illustrates more .
val = abc() ' val will be array variable with 1,2,3 elements.
Function abc()
abc = array(1,2,3)
End Function
This is how we can return array from function in QTP
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