Dear Rashmi,
Your code is fine except calling the function.
You don need to use the call statement.
so instead of this line
use
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.
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.