GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  VBA
Go To First  |  Previous Question  |  Next Question 
 VBA  |  Question 59 of 60    Print  
what is the method for returning more than one values from a function in VB

  
Total Answers and Comments: 1 Last Update: July 11, 2008     Asked by: ajay_shu007 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: DebbieinFlorida
 
2 methods, use ByRef for the variables or return an array of values

Above answer was rated as good by the following members:
Whitelandro
July 11, 2008 11:40:07   #1  
DebbieinFlorida Member Since: July 2008   Contribution: 1    

RE: what is the method for returning more than one values from a function in VB
2 methods use ByRef for the variables or return an array of values
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Difference between a function and a subroutine, Dynaset and napshot, early and late binding, image and picture controls, Linked Object and Embedded Object, list box and combo box, List index and Tab index, modal and modules window, Object and Class, Query unload and unload in form, declaration and Instantiation an object?
Read Answers (1) | Asked by : Beena

Need of order method, no of controls in form, Property used to add a menu at runtime, Property used to count number of items in a combobox, resize a label control according to your caption.
View Question | Asked by : Beena

View Question | Asked by : Beena

Latest Answer : MsgBox is a built in VB function which displays a Message Box and MsgBoxQ is a function defined by the user. ...
Read Answers (1) | Asked by : Beena

Latest Answer : datagrid,listbox,combobox,label,button have refresh methodand textbox has clear methodalmost all controls have refresh method ...
Read Answers (1) | Asked by : Beena

1) You are creating a client application that calls ActiveX DLLs. Which of the following properties of the Err object provides the name of a component that sends an error back to the client application? a. Number b. Description c. CompName d. Component e. Source f. Text g. Desc h. None of the above2) If the Cancel Error Property of the CommonDialog Box is set to true then which of the following statement is true: a. A runtime error can result if the user clicks the cancel button b. A
please give me the answer for this . who is the master. 
Read Answers (1) | Asked by : shailesh

Latest Answer : 2 methods, use ByRef for the variables or return an array of values ...


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value  and  passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

What is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

What is DECODE function used for?

DECODE is used to decode a CHAR or VARCHAR2 or NUMBER into any of several different character strings or numbers based on value. That is DECODE does a value-by-value substitution. For every value that is given in the DECODE function it makes an if then check and matches the value. The general format
 

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf("%d",printf("%d %d %d", a,a,a)); } In this above program the inner printf i
 

How is the main() function declared?

The declaration of main can be done as int main() One more declaration that can be taken by main is command line arguments form int main(int argc, char *argv[]) or this can also be written as int main(argc, argv) int argc; char *argv[]; NOTE: It is not possible for one to declare the main
 

How does the function call within function get evaluated?

Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out. Let us understand this concept with an example. For instance consider a function sample called within it 4 times as given in program below: main() { int a=50;
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What is the default return value of a function?

The default return value from a function is int. In other words, unless explicitly specified the default return value by compiler would be integer value from function.   When a programmer wants other than integer values to be returned from function then it is essential that the pro
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape