Argument or/and parameter?
I hope this is the right section of the forums to ask this...
Is:... "x" called argument or parameter? Or both? Or is it the way you look at the procedure?
If you look at C there is always "argc", "argv",... so i assume it's an argument. But some people in these forums say it's a parameter.
VB (description of Command$() Function): "Returns the argument portion of the command line."
I'm just a bit confused cause English isn't my "default" language :)
And when i need to mention it i'm always asking myself - is it argument or parameter? Will the one i'm talking to understand me?
For info - i prefer the term argument. Parameter seems more like a property.
Re: Argument or/and parameter?
Ive always used the two interchangably but that could be wrong.
Re: Argument or/and parameter?
Well, it's both right.
There is not really a right or wrong on where to use it.
I think in programming though, people tend to refer more often to parameter rather than argument, but I don't know that for sure.
Re: Argument or/and parameter?
Please explain "interchangably" :D
Re: Argument or/and parameter?
It basicly means that they mean the same. This is one of the many quirks of the english language. So although they can be called a parameter and an arguement they functionally preform the same action. That is to pass data to a function or method, which are also interchanably.
Re: Argument or/and parameter?
I always thought that a procedure was passed a parameter. It may return an argument. But mostly a==b would mean a and b are arguments. Quite frankly though you can use either because the person you are talking to should be able to figure that out unless you are talking about programming to the wrong person.
Re: Argument or/and parameter?
this is soo funny :lol:
Argument - Parameter
Re: Argument or/and parameter?
This may help clear things up though.
http://www.devx.com/tips/Tip/13049
Re: Argument or/and parameter?
Glad we sorted that one out.
Re: Argument or/and parameter?
So it's really:
Quote:
...the way you look at the procedure.
It's an argument when calling the procedure and parameter inside the procedure :)
Re: Argument or/and parameter?
Generically, its just a variable either way :D
Re: Argument or/and parameter?
A parameter is the type of data being supplied to the routine, while an argument is the actual data being supplied.
Another way of looking at it is that the word parameter can be used in all cases, while argument is what you are trying to start here.