ByVal 

Specifies that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the calling code.

Remarks

The ByVal modifier can be used in these contexts:

Declare Statement

Function Statement (Visual Basic)

Operator Statement

Property Statement

Sub Statement (Visual Basic)

See Also

Reference

Visual Basic Language Keywords

Concepts

Argument Passing By Value and By Reference