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
when will you do debug your script? and explain that process?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
what is impact analysis on regression testing?
Hi All, I need code for how to execute qtp scripts from excell sheet
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.
Explain about the test fusion report of quicktest professional?
What is the basic concept of quicktest professional?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
How to delete an object from the object repository?