Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Statement that can return an expression to the calling function
#6
Solved: 11 Years, 4 Months ago
It is through Byref,

Code:
Function func1 (Byref var1)
auto var1
var1 = "abc"
End function
this will return the var1 value back as a variable. There is nothing called Return statement in Vbscript unlike Winrunner.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.


Messages In This Thread
RE: Statement that can return an expression to the calling function - by basanth27 - 08-26-2009, 01:23 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,736 09-07-2013, 05:07 AM
Last Post: jacosta
  getElementByid("myObhectId") return null??? qtptester 3 7,092 02-01-2013, 09:44 AM
Last Post: ravi.gajul
  Calling a HP Service Test Skript Gandalf2005 0 2,109 09-05-2012, 07:53 PM
Last Post: Gandalf2005

Forum Jump:


Users browsing this thread: 1 Guest(s)