Something Else That Has Changed in VB.NET
There are two ways to pass arguments to a procedure in Visual Basic: ByVal and ByRef. The default behavior has changed in the move from VB 6 to VB.NET. This article explains what changed and why.
Something Else That Has Changed in VB.NET
There are two ways to pass arguments to a procedure in Visual Basic: ByVal and ByRef. The default behavior has changed in the move from VB 6 to VB.NET. This article explains what changed and why.
©2012 About.com. All rights reserved.
A part of The New York Times Company.
This kind of reminds me of a piece of what might be called FORTRAN pornography. In FORTRAN arguments were passed by reference … including constants! Hence, if one wrote a simple little routine in FORTRAN to interchange the values of two arguments, and then called it with two constants, the values of the constants were swapped. This led to even worse bugs than the differences between VB6 and VB.NET!
I do believe this is the most scandalous thing I’ve ever heard from Dr. Ingerman. I’m shocked! Shocked, I say! Shocked!