[Public [Default] | Private Function
arglist)] [( )] [
expression] [Exit Function] [
expression] End Function
Gives the function scope through all procedures in all modules in the
project. If used within a class construct, the function is also
accessible from outside the project.
Private are mutually exclusive.
Defines a method as the default member of a class. It is valid only
for a public function (i.e., one defined using the
Public keyword) defined within a
Class...End Class statement. Only one property or
method in a class block can be defined as the default member of the
Restricts the scope of the function to those procedures within the same module.
The name of the function.
A comma-delimited list of variables to be passed to the function as arguments from the calling procedure.
Program code to be executed within the function.
The value to return from the function to the calling procedure.
arglistuses the following syntax and parts:
[ByVal | ByRef]
The argument is passed by value; that is, the local copy of the variable is assigned the value of the argument.
The argument is passed by reference; that is, the local variable is ...