What is a Procedure Signature?
The concept of procedure signatures explained in under 100 words. #Under100
A procedure signature is the declaration line of a Sub
, Function
, or Property
.
It includes the following parts:
- Scope:
Public
,Private
, orFriend
- Procedure Type:
Sub
,Function
, orProperty Let
/Get
/Set
- Identifier: i.e., the name of the procedure
- Parameter/Argument List: a comma-delimited list of parameters that appear within parentheses after the procedure name
- Return Type: follows the
As
keyword; only applies toFunction
andProperty Get
procedure types
Signatures are how your calling code interacts with your procedures.
Be careful changing procedure signatures to avoid breaking backward compatibility with the rest of your code base.
Acknowledgements
- Cover image generated by DALL-E-3
- Cover image created with Microsoft Designer