Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Statement that can return an expression to the calling function
#4
Solved: 11 Years, 4 Months ago
My exact question is as we have a 'Return' keyword in WinRunner which are used in fucntions. So is there any QTP equivalent fucntion/keyword for 'Return'.
My objective is to migrate a WR code to QTP code.

For eg:
Code:
public function func1(str var1)
{
auto var1
var1="abc"
if (a=0) then
return var1
else
msgbox "Bad luck"
}


Messages In This Thread
RE: Statement that can return an expression to the calling function - by prabhu656656 - 08-26-2009, 01:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,113 06-26-2015, 12:31 AM
Last Post: babu123
  Function return value is not passed during the 3rd iteration premanand1979 0 2,253 10-16-2014, 09:40 PM
Last Post: premanand1979
  Get the function name calling the function Shridevi.Salagare 1 3,739 09-07-2013, 05:07 AM
Last Post: jacosta
  getElementByid("myObhectId") return null??? qtptester 3 7,094 02-01-2013, 09:44 AM
Last Post: ravi.gajul
  Calling a HP Service Test Skript Gandalf2005 0 2,110 09-05-2012, 07:53 PM
Last Post: Gandalf2005

Forum Jump:


Users browsing this thread: 1 Guest(s)