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
Can we write winrunner language i.e TSL in QTP tool?
Explain the features of quick test pro(qtp)?
Explain how you can find the absolute value of the number in qtp?
Why is Client side image is preferred over server side image?
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
How to test fly out menu in qtp?
How many number of actions possible in qtp?
How to record a qtp script ?
What are the disadvantages of recording test cases in qtp?
how to find that tools work well with your existing system?
What is the recovery scenario in qtp?
Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........
How did you use regular expressions in QTP and also in WR?
The hybrid framework can be implemented for any application. Is it true?