1. Computing & Technology

Discuss in my forum

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.

Comments
August 6, 2006 at 8:07 pm
(1) PZI :

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!

August 6, 2006 at 11:08 pm
(2) visualbasic :

I do believe this is the most scandalous thing I’ve ever heard from Dr. Ingerman. I’m shocked! Shocked, I say! Shocked!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Related Searches byref byval

©2012 About.com. All rights reserved.

A part of The New York Times Company.