Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to return multiple values from QTP User defined function
#6
Solved: 10 Years, 9 Months, 2 Weeks ago
Code:
function fnGetVal(Sql, intRowNo, arrRowVal() , strResult,byref ReturlValue1,byRef ReturnValue2)

'-- code to read access table & store in array arrRowVal, count in intRowNo, result pass/fail in strEndResult.
ReturnValue1="qqqq"
RetuenValue2="aaaa"
fnGetVal=arrRows
End function

Assign Return array to function name directly.
For Example


Code:
'Call to the function
Arr=Mytest
msgbox Arr(0)


' Function Defination
Public function Mytest()
   Humm=Array(1,2,3,4)
End Function
Reply


Messages In This Thread
RE: How to return multiple values from QTP User defined function - by nil - 12-04-2009, 05:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP/UFT - Storing Multiple Arrays In An Array Eitel13 0 1,657 07-17-2018, 04:37 PM
Last Post: Eitel13
  UFT 12.02 Compatibility for IE 11.0 : Fail to identify the defined Object Amruta_121 9 10,523 01-11-2016, 12:45 PM
Last Post: vinod123
  Childobject return wrong checkbox count.. VpnQTP 1 2,597 04-09-2015, 09:07 PM
Last Post: babu123
  Calling a Function in Function Library when function is defined in an Action jitenderkkr 0 2,782 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  Does QTP supports to open same application multiple times!!!!! pkiran169 1 2,822 08-07-2013, 01:09 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 1 Guest(s)