|
-
Aug 2nd, 2008, 04:22 PM
#1
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.
-
Aug 2nd, 2008, 04:35 PM
#2
Fanatic Member
Re: Argument or/and parameter?
Ive always used the two interchangably but that could be wrong.
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 2nd, 2008, 04:38 PM
#3
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.
Delete it. They just clutter threads anyway.
-
Aug 2nd, 2008, 04:39 PM
#4
Re: Argument or/and parameter?
Please explain "interchangably"
-
Aug 2nd, 2008, 04:50 PM
#5
Fanatic Member
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.
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Aug 2nd, 2008, 09:31 PM
#6
Hyperactive Member
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.
Slower than a crippled Vista
More buggy than a fresh XP install
Look! Down the road, some 50 miles behind the drunken snail.
It's Ubuntu!
-
Aug 2nd, 2008, 10:13 PM
#7
Re: Argument or/and parameter?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 2nd, 2008, 10:15 PM
#8
Re: Argument or/and parameter?
This may help clear things up though.
http://www.devx.com/tips/Tip/13049
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 2nd, 2008, 10:39 PM
#9
Hyperactive Member
Re: Argument or/and parameter?
Glad we sorted that one out.
Slower than a crippled Vista
More buggy than a fresh XP install
Look! Down the road, some 50 miles behind the drunken snail.
It's Ubuntu!
-
Aug 3rd, 2008, 06:13 AM
#10
Re: Argument or/and parameter?
So it's really:
...the way you look at the procedure.
It's an argument when calling the procedure and parameter inside the procedure
-
Aug 3rd, 2008, 02:41 PM
#11
Re: Argument or/and parameter?
Generically, its just a variable either way
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 4th, 2008, 09:16 AM
#12
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.
My usual boring signature: Nothing
 
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
|