JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,676
- Office Version
- 365
- Platform
- Windows
It is my understanding that I should use the ByVal keyword if I am
planning to modify the parameter. Is that correct?
Or is it bad form to modify the function parameters at all?
Example:
Public Sub Write2File(byval FileID As String, Data As String)
FileID = FileID & ".txt"
...
planning to modify the parameter. Is that correct?
Or is it bad form to modify the function parameters at all?
Example:
Public Sub Write2File(byval FileID As String, Data As String)
FileID = FileID & ".txt"
...