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


Please Help Members By Posting Answers For Below Questions

why do u need an ANT?

2005


How applet differ from Swings in java ?

1580


Why we use Action Script(Multimedia Flash) rather than using other scripting languages (JAVA,VB...etc) ?

2366


What is the procedure for installing USP-35 on my compure?

1699


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

1849






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?

1621


database acl level has manager access.his name is listed in author and Reader fields. but he didn't sea a documents what is the reason?

1960


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

1838


How can you convert QTP 8.2 scripts to QTP 9.2. Please give some inputs ASAP.

2396


Would you tell me that what is test script? and how to write it? are there some templates?

1852


If we add regular expressions to a script recorded in QTP, will it effect the performance of the script?

1767


why script is client dependant.

1978


How do you insert record into scripting using siebel crm

5066


how do u define in ur build.xml If I need to execute a task before executing my task?

1766


why script is client dependant.

1785