Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to attach a file to TD?

1144


Hoe can we do retesting using functions please give the code for it using login page

1938


How did you use regular expressions in QTP and also in WR?

2629


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

2229


What is the diff between image and bitmap check point?

1038


Your roles and responsibilities and daily tasks? (As automation tester)

3088


What is quicktest professional window?

991


What are advantages of test automation?

1134


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

2111


What are the advantages of qtp?

1005


What is throw object?

2366


How many types of recording facility are available in quicktest professional (qtp)?

1060


What is the latest version of qtp?

1106


How to check feasibility of the appliction?in automation testing?

1977


can anyone tell me from where i can download qtp demo or crack version

1990