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
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("ยป County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
Hi,All How to create a link in excel sheet using qtp
How to capture all the data of a webtable, weblist and combolist using QTP?
How many add-ins comes by default with quicktest professional?
Explain advantages and disadvantages kdf?
whare exactly we have to use functions and sub routain
How you can decide which type of object repository you have to use?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What are the technics follow in writing VB script?
What is qtpro? What is a quick test professional?
what is description object?
What are the properties you would use for identifying a browser and page when using descriptive programming?
why text area checkpoints cannot used for web applications