How can we return a value from User Defined Function ? For
Eg. we have 2 functions. In Fun1 i am getting 2 values (a,b)
and i am addding those 2 and storing in to another var (c).
Now i want to pass that var(c) to another function (fun2).
What will be the script?
Answer Posted / ramesh
Hi Ganesh/Krishna,
Can you try it out the below one.
function add(out c)
{
c=a+b
add(c)
}
dis=add(c)
function len(dis)
{
count=length(dis)
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why we use Action Script(Multimedia Flash) rather than using other scripting languages (JAVA,VB...etc) ?
If we add regular expressions to a script recorded in QTP, will it effect the performance of the script?
why do u need an ANT?
a="10.20.30.1" replace 1 with 45 in python using reg ex
I have deducted tds on pay slip for employees ist month tell me how to deposit this amt to govt. by bank or any form is available fill the same and deposit the govt. department. Pls explain me which form to be used for deposit the same with due date.
What is the procedure for installing USP-35 on my compure?
Difference between the SAP MDM vs IBM MDM in approach, the tools used , ease in handling/implementing.
I have installed QTP version 9.0. I have installed Mozilla firefox version 2.0. But QTP "Record and Run settings" in WEB tab shows FIREFOX 1.5 in drop down to run session begins. So QTP does not record anything which I type in firefox. How can i recognise firefox 2.0 and how can i update browser version in QTP?
how can i type the text message in compose box in yahoo mail using descriptive programming in QTP?
how do invoke OS task through ANT?
why script is client dependant.
how do u define in ur build.xml If I need to execute a task before executing my task?
how can i get two different fonts in a single line
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
Would you tell me that what is test script? and how to write it? are there some templates?