Is it possible to return multiple values from a function..?
Then how..?
Answer Posted / satish j
It is possible to return multiple values from a function?
Here I am taking the return values in an array and using
them as I want
mynum1 = 0
mynum2 = 0
dim linklist(2)
imax = ubound(linklist)
Function fncl1(ByRef mynum1,mynum2, x , y)
If i= 0 Then
z = "+"
Select Case z
case "+"
mynum1 = x +y
msgbox mynum1
fncl1 = mynum1
End select
else
z = "-"
Select Case z
case "-"
mynum2 = x- y
msgbox mynum2
fncl1 = mynum2
End Select
end if
End Function
For i=0 to imax
linklist(i) = fncl1(mynum1,mynum2,5,4)
If linklist(i) = mynum2 Then
Exit for
End If
Next
msgbox linklist(0)+linklist(1)
msgbox linklist(0)&","&linklist(1)
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to use the object spy in quicktest professional 8.0 version?
Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan
How can you send user defined messages to test report?
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
What are parameterizing tests?
after initiating one project for testing, when exacltly QTP tester role starts?
How to test fly out menu in qtp?
Hi,All How to create a link in excel sheet using qtp
What is the difference between the design-time and run-time data tables?
Which scripting language used by quicktest professional (qtp)?
How you will rate urself in QTP in the range of 0 to 5
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
How to find the length of the string in qtp?
What is ‘object spy’ and what is the function of object spy in qtp?