Is it possible to return multiple values from a function..?
Then how..?
Answer Posted / rico
If we pass the parameters by "Byval" the last two msgbox
statement will return "0"
Ex :
mysum = 0
msgbox mysum ' return 0
mysub = 0
msgbox mysub ' return 0
Function fnmul(byval mysum, mysub, x , y)
mysum = x + y
msgbox mysum 'return 9
mysub = x - y
msgbox mysub 'return 1
End Function
Call fnmul( mysum, mysub, 5, 4)
msgbox mysum 'return 0
msgbox mysub 'return 0
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How does quicktest professional (qtp) identifies the object in the application?
what is the diffrence bw qtp architectute and qtp framework?
Why qtp always start action1 and does not start action?
With what extension you can save the list of tests in a file to run in test batch runner?
How to open a new test using quicktest professional (qtp)?
What is the file extension of the code file and object repository file in QTP?
What are the different recording modes and how do they work?
I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????
What is the difference between run time object and test object in QTP?
How qtp identifies objects?
assume i have few url link how will i dynamically call then using descriptive programming?
What is text/text area checkpoint?
what is defenetion of kiran can u tell me plz CVS, SVN
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
How you create new action in qtp?