Export (0) Print
Expand All

Procedure Overloading

Overloading a procedure means defining it in multiple versions, using the same name but different argument lists. The purpose of overloading is to define several closely related versions of a procedure without having to differentiate them by name. You do this by varying the argument list.

In This Section

Rules of Procedure Overloading
Discusses the requirements of procedure overloading, including the ways in which overloaded versions must differ from each other (in number, order, or data types of arguments).
Considerations in Overloading Procedures
Discusses restrictions on overloading optional arguments, implicit overloads for ParamArray arguments, and typeless programming as an alternative to overloading.
Overload Resolution
Describes the steps the Visual Basic compiler takes when, encountering a call to a procedure that is defined in several overloaded versions, it decides which overload to call.

Related Sections

Procedures
Provides links to topics about Visual Basic procedures, including information on the different procedure types and how they are called.
Show:
© 2014 Microsoft