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

Answer Posted / bantanahal haribabu

function exmp(a,b)
dim myarray(2)
myarray(0)=a+b
myarray(1)=a*b
exmp=myarray
end function
val=exmp(2,3)
msgbox isarray(val)
for i=o to ubound(val)
msgbox val(i)
next

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Key word driven framework

1920


Diff b/w Health care domain and Banking Domain?

4425


How to do call a output parameter from one action to another action??/

2088


Explain the concept of how quicktest professional identifies object?

747


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1892


Explain sub procedure of vbscript.

774


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1601


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

1841


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1765


What is the difference between run time object and test object?

792


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1783


what function you write to do database testing with the help of qtp?

1599


Explain the parameter in qtp?

781


I want to do QTP Certification what is the pattern of Question paper.

1960


Which functionalities of QTP used in banking project? pls any say answer?

1651