Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   ByVal versus ByRef (http://www.programmingforums.org/showthread.php?t=12261)

alphonso Dec 26th, 2006 9:53 AM

ByVal versus ByRef
 
What's the difference between these two (ByVal and ByRef), and where, when, and how do you use them? Thanks :)

DaWei Dec 26th, 2006 10:38 AM

Why do you ask? Have you pursued this in your language reference and failed to understand? Here's a cursory difference. If I give you a copy of something, you can edit it, scribble on it, feed it to your dog, or whatever else flips your skirt up, without affecting the original. If I give you access to the original, by telling you how to get at it, you can eff it up at your discretion. Whether or not that's a Good Thang depends on circumstances. That's why you need to think about it when you decide.

alphonso Dec 26th, 2006 11:38 AM

Quote:

Why do you ask? Have you pursued this in your language reference and failed to understand?
Yes, I failed to understand it in the words of Evangelos Petroutsos in his book, and sorry to say, his book (Mastering Microsoft Visual Basic 2005) is not a language reference, and I have no budget for buying another book about Visual Basic 2005. I thought that someone here in PF, professional programmer or not, would have the solution to my question; nevertheless, I thank you, DaWei, for pointing me to the right suggestion.


All times are GMT -5. The time now is 4:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC