Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pass 2 arguments to a function
#2
Solved: 11 Years, 4 Months ago
Dear Rashmi,
Your code is fine except calling the function.
You don need to use the call statement.
so instead of this line
Code:
x =Call StringCom (x1, x2)

use
Code:
x = StringCom(x1,x2)

The function is returning so you just need catch the return value into a variable by using the name of the function and parameters.

I Would Recommend you to go through the link and learn VB Script

http://www.w3schools.com/vbscript/default.asp

Hope this is going to be helpful for you.
Reply


Messages In This Thread
How to pass 2 arguments to a function - by Rashmi - 08-13-2008, 06:50 PM
RE: How to pass 2 arguments to a function - by somisays - 08-14-2008, 04:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,127 06-26-2015, 12:31 AM
Last Post: babu123
  PASS/FAIL in QTP badri 3 6,218 12-05-2014, 03:26 AM
Last Post: kiranpol
  how to pass the data frm datatable silpavinod 3 3,969 10-18-2012, 01:54 PM
Last Post: silpavinod
  How to pass all rows from data sheet in a function argument richa07 1 3,071 10-15-2012, 03:06 PM
Last Post: srinath_QTP
  how to pass a numeric value into webedit silpavinod 3 3,867 10-15-2012, 01:57 PM
Last Post: silpavinod

Forum Jump:


Users browsing this thread: 2 Guest(s)