Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Statement that can return an expression to the calling function
#5
Solved: 10 Years, 9 Months, 3 Weeks ago
you can use the same code in QTP, Only you need to replace return with func1
here is your QTP code
Code:
public function func1(var1)

var1="abc"
if (a=0) then
func1 = var1
else
msgbox "Bad luck"
end function



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

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

Forum Jump:


Users browsing this thread: 1 Guest(s)