|
|
|
|
|
|
|
|
|
|
|
|
|
|
v |
Many
programming languages (including VB6)
|
|
|
provide
several different ways of passing values back
|
|
and
forth between the actual and the formal
|
|
|
parameters.
|
|
|
v |
The
default in Visual Basic, and the only kind we’ll
|
|
|
use
in CSE/IMT 100, is pass by reference.
|
|
|
v |
Pass
by reference allows information to flow in both
|
|
|
directions.
|
|
|
|
o |
Formal
parameters can be used as inputs or outputs or both
|
|
|
|
o |
Any
changes made to a formal parameter will make a
|
|
|
change
to the corresponding actual parameter.
|
|