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
how do u define in ur build.xml If I need to execute a task before executing my task?
why do u need an ANT?
how can i get two different fonts in a single line
Would you tell me that what is test script? and how to write it? are there some templates?
Why we use Action Script(Multimedia Flash) rather than using other scripting languages (JAVA,VB...etc) ?
a="10.20.30.1" replace 1 with 45 in python using reg ex
Someone who protect my excel file, m using ms office 2007 and windows 7 operating system, pls help me, how can i unprotect sheet
Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible
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.
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?
Need a batch file or VB script to delete old (more than 90datys) roaming profiles
If we add regular expressions to a script recorded in QTP, will it effect the performance of the script?
can I name the build.xml with any name? if so how can I invoke ?
how can we move to the next column in excel sheet in file operation using descriptive programming inQTP?
I Am Planning to Write ISTQB foundation level Ceritification of inida. can Any Body let me know how to prepare for it & Any Study material can you provide or Any other E-books i should need to Study. Please Mail to me ajaybe_2004@yahoo.co.in THnaks in advance Ajay