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
When and why to use descriptive programming?
what is Property......End Property loop? how to write sript for it in QTP
What is output value? How many types of output values are there in qtp?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
What is the meaning Work bench?
What are the technologies supported by qtp?
Explain the difference between data driven testing and parameterization ?
what testplan contents and what test strategy contents,what is the diff b/w them
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
Can you write a script to check if the folder exists or not?
In qtp, explain what is qrs file?
What is meant by Output Value in UFT?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
What are the check points can be inserted without recording?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?