|
-
May 31st, 2007, 04:27 AM
#1
Thread Starter
Frenzied Member
[2005] BYVAL v BYREF
This thread is a continuation of this one which got off the topic.
http://www.vbforums.com/showthread.p...60#post2897060
With reference types, is there any advantage using ByVal and any disadvantage using ByRef?
I was so used to using ByRef in VB6 as it was the default that I have continued to use it as the default unless I specifically want to pass ByVal - that is when I don't want the value of the passed variable to be changed.
What was MS's rationale for changing the default to ByVal?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|