Could some one explain how to retrieve/return multiple values using Arrays in QTP?
FYI, I have searched the already existing posts, but couldn't get the right answer.
you have to be more specific. give an example of what you are looking for.
It is as regular.
In calling function assign the return value to a variable.
Return an array in called function.
Here is the ex:
For i=0 to ubound(arr)-1
Public function callFunc()
QTP / UFT Videos from my Youtube Channel
QTP / UFT Videos from my Blog
Thanks for your instant reply. Can you explain how to handle Dynamic arrays in case if we don't know the size of an array?
First declare you array as:
and later reassign your array as this:
Use ReDim to create a dynamic arrays.