Export (0) Print
Expand All
7 out of 15 rated this helpful - Rate this topic

ByVal

The ByVal keyword indicates 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.

The ByVal keyword is used in these contexts:

Declare Statement

Function Statement

Property Statement

Sub Statement

See Also

Visual Basic Language Keywords | Argument Passing ByVal and ByRef

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.