473,385 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

A word to explain ByRef and ByVal

Frinavale
9,735 Expert Mod 8TB
In VB.NET you can pass parameters by reference (ByRef) or by value (byVal).
Is there a word that can be used to refer to this?

-Frinny
Sep 29 '08 #1
9 1782
joedeene
583 512MB
In VB.NET you can pass parameters by reference (ByRef) or by value (byVal).
Is there a word that can be used to refer to this?

-Frinny
..could u clarify your question a bit...i dont quite understand, do you mean like how u can reference a class or most objects to something less you have to type?

joedeene
Sep 29 '08 #2
Frinavale
9,735 Expert Mod 8TB
..could u clarify your question a bit...i dont quite understand, do you mean like how u can reference a class or most objects to something less you have to type?

joedeene
I am looking for a word to explain what ByRef and ByVal are.

For example the word "scope" or "modifiers" refers to keywords like "Public", "Private", "Protected" etc.

Is there a word like the this that can be used to refer to ByRef and ByVal?


-Frinny
Sep 29 '08 #3
Plater
7,872 Expert 4TB
MSDN calls them keywords. I would call them "argument keywords" maybe?
Sep 29 '08 #4
Frinavale
9,735 Expert Mod 8TB
MSDN calls them keywords. I would call them "argument keywords" maybe?
Hmm I guess there is no word.

I just used several sentences to explain what I was trying to say instead of trying to explain everything in a one line comment....although "argument keywords" best suits them.

Thanks though

-Frinny
Sep 29 '08 #5
balabaster
797 Expert 512MB
Hmm I guess there is no word.

I just used several sentences to explain what I was trying to say instead of trying to explain everything in a one line comment....although "argument keywords" best suits them.

Thanks though

-Frinny
They're actually called "Argument Modifiers"
Sep 29 '08 #6
Frinavale
9,735 Expert Mod 8TB
They're actually called "Argument Modifiers"
Thanks!

It seems that googling Argument Modifiers doesn't really help in understanding what I'm trying to explain. It's too abstract of a concept....

I've decided that if my audience doesn't know what ByRef is, then they can search the web themselves to understand what I'm trying to say.

It is nice to know that ByVal and ByRef are Argument Modifiers though!

Thanks again :)

-Frinny
Sep 29 '08 #7
balabaster
797 Expert 512MB
Thanks!

It seems that googling Argument Modifiers doesn't really help in understanding what I'm trying to explain. It's too abstract of a concept....

I've decided that if my audience doesn't know what ByRef is, then they can search the web themselves to understand what I'm trying to say.

It is nice to know that ByVal and ByRef are Argument Modifiers though!

Thanks again :)

-Frinny
No worries... they are a pretty abstract concept... especially if the reader doesn't understand pointers. It would be akin to trying to explain AddressOf.

I'm not sure what the easiest way to explain this concept would be...

Maybe:

ByVal tells the method that the value is being passed as a value, ByRef tells the method that it is accepting the placeholder for that value and that if the value is changed in that placeholder then the changed value would also be reflected in the calling code?

For someone that doesn't understand it, it's a hard concept to grasp... mostly I think because it's such a hard concept to explain. Once you get it, it's simple, but it's still hard to explain to someone else...
Sep 29 '08 #8
Plater
7,872 Expert 4TB
I have used the example of giving someone a box/bucket (ref) versus what is INSIDE the box(value)
Sep 29 '08 #9
Frinavale
9,735 Expert Mod 8TB
What I needed to explain was that I was declaring empty string variables because the method I am calling in the example expects parameters using ByRef.

I didn't really want to get into to many details because I am hoping that the end user (a developer) understands ByVal and ByRef...I'm hoping that if they don't understand my comment that they'll look it up.......instead of calling me.....


Hmm maybe I do need to explain this a bit better.
Sep 29 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: wendy | last post by:
I created com add-in for word2003, excel2003 and powerpoint2003, basically, i added 4 button in toobar and on_click, i apply some bussiness logic. all works in excel2003 and powerpoint 2003, but in...
0
by: maitrepoy | last post by:
I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office. This is...
0
by: maitrepoy | last post by:
Hello I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office....
0
by: maitrepoy | last post by:
hello I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office....
14
by: Robin Tucker | last post by:
Although I've been working on this project for 8 months now, I'm still not sure of the difference between ByVal and ByRef. As most objects in VB are reference types, passing ByVal I've discovered...
1
by: Terrance | last post by:
Hello, I was wondering if someone can help me understand something. Below is some code that I got from the MS website that is suppose to authenticate for the username and password on the local...
0
by: Omer | last post by:
I am trying to create a shared addin using visual studio 2005 with the following code. It is working only in Power Point Appliction and not loading in Excel and Word I used the Visual Studio Wizard...
5
by: sejal17 | last post by:
Hello Friends, I want Application that displays an image preview of a Word document (Like thumbnail View of word document) Following is my code but i got error on bold part of code ...
0
by: asedt | last post by:
I have problem creating a private sub to replace text in a wordfile, is the use of ByRef good? The problem is that this works on my developing computer but not at the target computers. Private...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.