Formal Parameters
The formal parameters are “declared” within the parentheses … the syntax is just like DIM statements
- As with other variables, any names can be chosen
- Each variable must be given a type: Integer, String, Double
Formal parameter variables are “known” only within the procedure, i.e. they are local to a procedure
- They cannot conflict with variables in the calling context
- Different procedures could use the same formal parameter names without confusion or conflict
The role as input or output is not specified in VB6
- Formal parameters can be used as inputs or outputs or both
- Any changes made to a formal will be manifest in the calling context, i.e. the corresponding actual parameter is changed