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
How many test scenarios you have automated? How many time it will take to execute 30-40 scenarios? What SDLC model you are following? How often you will execute your test scripts? Because of some changes, your test scripts failed? When you will update your test scripts? How much time it will take to update? Do you know how to connect database? Do you know the direct method to count no. of records (or) rows present in record set once query is executed? How will you create the connection string? How did you resolve conflicts present in Object Repository? How good you are in VB? How will you work on Excel Application? How will you select Excel sheet? If you want to select 10 sheets, will you create 10 separate objects? Given string is “abcd”. What are the methods you will use to display “dcba”? Drives script – explain the frameworks? How you are updating results for each test? What is start up, configuration, navigation scripts? If you are not able to understand the application (some module), who will teach you? What test cases to be automated? When to be automated? What is the testing process you are following? What life cycle you are following? When you will use Descriptive Programming? Do you have the permission to add objects into shared object repository? (OR) someone will maintain SOR? Do you know how to add objects into shared object repository? How many test cases you have automated? How much time will it take to execute? What is complex in automation? When you feel automation is complex? Tell me one scenario, the complex functionality you have automated in your project? Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet. Rate yourself in SQL? Display the employee name who is getting maximum salary? sal ID Salary name 001 100 002 500 003 300 ID 001 002 003 Ename A B C Have you written any test cases while you are in Automation? Manual Testing also will you do or you will work only in automation?
Where you are storing your script?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
How the smart identification is used in real time?Please explain with an example
any body can you help me what is the script to automate an comand promt
Analyzing the checpoint results?
What is an object repository?
What is synchronization? What are the ways you can synchronize?
How to check bitmap output value?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
What are the differences between quicktest professional (qtp) and winrunner?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
Tell some commonly used Excel VBA functions?
How do you know the location Id of an object if you know its index id?