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
9 1782
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
..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
MSDN calls them keywords. I would call them "argument keywords" maybe?
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
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"
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
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...
I have used the example of giving someone a box/bucket (ref) versus what is INSIDE the box(value)
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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....
|
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....
|
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...
|
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...
|
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...
|
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
...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
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...
|
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...
| |