This main purpose of this sample is to illustrate one of the
side effects that can occur when you pass arguments to a function
or subroutine.
There are two ways that you can specify for VB to pass arguments to a
procedure: by reference (ByRef) or by value (ByVal). If you haven't
already, please see the Classic ASP version
for an explanation of the difference.
You may notice from the results of the sample above, that the default method
of passing parameters has changed. In VBScript/VB6, if you didn't specify which
method to use, then parameters were passed was ByRef. Starting with
the .NET Framework 1.x release, the default was changed. Now if you don't
specify how parameters should be passed, they are passed ByVal.