* "Hei" <ch******@msn.com> scripsit:
i know the difference of ByRef and ByVal, in case if use byref or byval
don't affect the result which one should prefer? (less memory use, better
performance ....issue)
There _is_ a difference between 'ByVal' and 'ByRef'. In VB.NET, 'ByVal'
is used by default because it often makes more sense. 'ByRef' is only
relevant for reference types, if the _reference_ itself should be
changed by the procedure.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>