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
Mention what are the different types of recording modes in qtp? Which will be used when?
Explain building blocks of the bpt framework ?
What are output values and why they are used ?
What are test settings and global settings?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
Who uses qtp tool?
How can i check items sorted or not in a weblist ? Give me the script for this...
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
Can you brief the hurdles you faced during Automation testing?
How can get count of list box?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
Is it possible to call from one action to another action in qtp?
What does mean by Scope of Automation?n How we defined it?