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
Diff b/w Health care domain and Banking Domain?
What is the difference between per-action and shared?
give me the code to save all messages of inbox of gmail into a folder and notepad
why you have standardized functions? plzzz guys with real time exp. do answer
What are the flaws in water fall model and how to overcome it?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
How to release all resources file from the QTP?
What are the different attribute used with regular expression?
What is method name to compare two XML files.
What is the limitation to XML Checkpoints?
what are the limitations of smart identification in qtp 9.0
What is file database?
what is meant by Implicit and explicit requirements?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Explain data driven framework?