|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
v |
The
formal parameters are “declared” within the
|
|
|
parentheses
… the syntax is just like DIM statements
|
|
|
|
o |
As
with other variables, any names can be chosen
|
|
|
|
o |
Each
variable must be given a type: Integer, String, Double
|
|
|
v |
Formal
parameter variables are “known” only within
|
|
|
the
procedure, i.e. they are local to a procedure
|
|
|
|
o |
They
never conflict with variables in the calling context
|
|
|
|
o |
Different
procedures could use the same formal parameter
|
|
|
names
without confusion or conflict
|
|
|
|
o |
The
technical term for this is “scope”: the scope of the formal
|
|
parameter
is local to the procedure.
|
|