Is it possible to return multiple values from a function..?
Then how..?
Answer Posted / rico
One way of getting mutiple values from function is by
passing values "ByRef" to the funtion and storing the
return values in the one or more arguemnts passed to the
functions.
Ex :
mysum = 0
msgbox mysum ' return 0
mysub = 0
msgbox mysub ' return 0
Function fnmul(byref 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 9
msgbox mysub 'return 1
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Can we Test Welcome Screens and Process Images with QTP
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
Does quicktest professional is unicode compatible?
Explain actions in qtp ?
regular expression in qtp standar check point for months from accepting months from january to december only
What is the difference in testing a client-server application and a web application?
How to find operating system information using the qtp script?
In qtp, how you can use xpath to identify objects?
how to create flat file datasubmission in qtp
terminal services client
I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error
Tell me about qtp?
What are the common defects found in your project? (in qtp interview)
Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak
What is environment variable in qtp and why to use it?