Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 26th, 2006, 10:53 AM   #1
alphonso
Programmer
 
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3 alphonso is on a distinguished road
ByVal versus ByRef

What's the difference between these two (ByVal and ByRef), and where, when, and how do you use them? Thanks
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein
alphonso is offline   Reply With Quote
Old Dec 26th, 2006, 11:38 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 26th, 2006, 12:38 PM   #3
alphonso
Programmer
 
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3 alphonso is on a distinguished road
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.
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein
alphonso is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GOTO Sys. Tray Src. (code Snippet) Cipher Show Off Your Open Source Projects 1 Oct 17th, 2006 2:38 PM
Jackpot game zorin Visual Basic 3 Jun 10th, 2005 2:19 PM
Linking dll failure (file not found) amrfathy_egy Visual Basic 8 Feb 3rd, 2005 4:13 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:05 PM.

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