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
How software tester can use constants and variables in scripts?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
What is QTP and the use of QTP in TD?
In qtp, how you can exit for loop?
Where is the Bitmap checkpoint information stored?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
What Folder Structure following in Keyword Driven Frame work?
What is the default add-ins in qtp?
Have you used xml check point in your project? How?
How to recognise the webelement and verifying that webelement is enabled?
how do u plan test automation?
Is the qtp course will help to create a virtual object?
How many ways we can parameterize data in quicktest professional?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
When using descriptive programming?