Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to return multiple values from QTP User defined function
#9
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Nil,
Changed the code as below in Function and working fine.
Code:
fnGetVal=arrRows  

===== call code
strSql="Select SrNo,Name from ABCtbl where Flag = '1' "
strErrorMessage=fnGetVal(strSql, intCount, arrRowVal, strResult)

I have got the values for strResult & arrRowVal in main script.
The arrRowVal's  values are assigned to strErrorMessage.  
strErrorMessage(0) - display first value
strErrorMessage(1) - display second value...

I am not understandig that strErrorMessage is a variable which is converted in an array.
Why is it so? I guess whatever type of value assigned to a varible then the varisble get converted in that type. Please tell me this interpretaion is correct or wrong.

Thank you very much for giving me your valuable time. Thanks!
Dinesh
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP/UFT - Storing Multiple Arrays In An Array Eitel13 0 1,794 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 11,156 01-11-2016, 12:45 PM
Last Post: vinod123
  Childobject return wrong checkbox count.. VpnQTP 1 2,845 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,965 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  Does QTP supports to open same application multiple times!!!!! pkiran169 1 2,953 08-07-2013, 01:09 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 2 Guest(s)