ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   What's the difference between parameter and argument?? (https://www.excelbanter.com/excel-programming/278061-whats-difference-between-parameter-argument.html)

active_x[_10_]

What's the difference between parameter and argument??
 
Example:

...
test a, b, c, d
...
Sub test(ByVal a, b, c, d)
...

Are "a, b, c, d" (in test a, b, c, d) parameters or arguments?
(question 1)

Are "a, b, c, d" [in Sub test(ByVal a, b, c, d] parameters or
arguments? (question 2)

What's the difference between parameter and arguments? (question 3)



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


Rob Bovey

What's the difference between parameter and argument??
 

As far as I know, the terms parameter and argument can be and are used
interchangeably just about everywhere for the purposes of discussing
programming languages. I've noticed some bias in the literature for calling
the variables accepted by a procedure parameters, e.g.

Sub MySub(ByVal Param1 As Long, ByVal Param2 As Long)

and the values passed to those variables arguments, e.g.

Dim Arg1 As Long
Dim Arg2 As Long

Arg1 = 10
Arg2 = 20

MySub Arg1, Arg2

But this is by no means universal.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"active_x" wrote in message
...
Example:

..
test a, b, c, d
..
Sub test(ByVal a, b, c, d)
..

Are "a, b, c, d" (in test a, b, c, d) parameters or arguments?
(question 1)

Are "a, b, c, d" [in Sub test(ByVal a, b, c, d] parameters or
arguments? (question 2)

What's the difference between parameter and arguments? (question 3)



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/




Niek Otten

What's the difference between parameter and argument??
 
In this context, there is no difference.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"active_x" wrote in message
...
Example:

..
test a, b, c, d
..
Sub test(ByVal a, b, c, d)
..

Are "a, b, c, d" (in test a, b, c, d) parameters or arguments?
(question 1)

Are "a, b, c, d" [in Sub test(ByVal a, b, c, d] parameters or
arguments? (question 2)

What's the difference between parameter and arguments? (question 3)



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/





All times are GMT +1. The time now is 10:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com