can a Function return more than one value..??? if so please
give me the code for that.

Answer Posted / nath t

Function doesn't return more than one value.

if you want to get more than one result, we can write
function for that. After u will get the value u have to
split the value.

Example:

Function AddSub(a, b)
som = a + b
subt = a - b
AddSub = som&"/"&subt
End Function

this function returns only one value. But it's having two
results(i.e Addition and subtraction of two no.s).

After u will get this value. u have to split that one for
two results by using split function here delimeter is "/".

like this we can add more than one result to the return
variable(in this example AddSub is the return variable).

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a checkpoint? How many check points are there in qtp?

530


Explain about the test fusion report of quicktest professional?

531


What are the ordinal identifiers in web page?

640


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1701


Give the syntax to import/export xls into qtp.

588






Difference between test object and run time object?

592


diff between qtp versions from 8.5

1567


How many add-ins comes by default with qtp?

541


Does quicktest professional is unicode compatible?

525


What is the extension of the recovery scenario file in qtp?

546


Can anybody post some real time scenario in qtp? please its very urgent.

1802


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

635


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

1583


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

869


There is an excel file of 1 to 100 sheets how you will iterate through it?

528