ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
can a Function return more than one value..??? if so please 
give me the code for that.
 Question Submitted By :: Kumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can a Function return more than one value..??? if so please give me the code for that.
Answer
# 1
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 ?    1 Yes 4 No
Nath T
 
  Re: can a Function return more than one value..??? if so please give me the code for that.
Answer
# 2
Another way to handle more than one return value is using
arrays and also use global variables.
 
Is This Answer Correct ?    1 Yes 1 No
Uday Kumar _ Anem
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
QTP 9.2, Issue: Creating Shared Object repository. I recorded 2 scripts. I exported the Object Repository to a shared location for the first script. Associated the exported repository to the first script and deleted the Local Repository for the First Script. Now Opened the Second script and try to Add the Local Object Repository of 2nd Script to Exported Object Repository. But I fail. Can anyone please help in providing steps that need to be followed in creating a shared object repository? Thanks in Advance. UHG3
when there is a task that gets repeated in multiple scripts what do you do in QTP? Ordain-Solutions2
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance.. Wipro9
How to load a object repository(using VBScript) ... very urgent....  4
what is throw object ?  1
When and why do you use "OPTION EXPLICIT" in VB Script. Is there any online help or something to learn the script for Beginners?  5
WHAT IS THE DIFF BTW KEYWORD DRIVEN TESTING AND DATA DRIVEN TESTING?  1
1) after inserting the check point how to change the expected value that was captured while inserting the check point TCS2
What is the difference between QTP 8.2 and QTP 9.2  1
Is it possible to return multiple values from a function..? Then how..?  2
Dim ExcelSheet Set ExcelSheet = CreateObject("Excel.Application") excelsheet.application.visible = true ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1" ' Save the sheet. ExcelSheet.SaveAs "C:\DOCS\TEST.XLS" ' Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit after run this script i am getting error"The test cannot continue due to unrecoverable error"  3
how to retrieve the value from data table to the script and using the value to be displayed in message box. an also retrieve the value of the output value during runtime to the script or separating and using that value in the script.  1
What is output value?  2
how can we know the program is testing by multiple test data in data driven frame work? CTS1
I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it? IBM6
How to identify flash application when the qtp is not identifying the flash application objects.  2
Hello friends can anybody tell me about the architecture of QTP with diagram of it.this architecture is same for any domain like ERP/Banking/CRM/Healthcare or it's different then please tell me.thanks Fidelity4
How to export QTP results to an .xls file? IBM7
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance  2
what testing activities u may want to automate in a project?  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com