To declare Procedure variables:
You can declare Procedure variables in the Variables View of the Procedures View window.
Click in the Variables View to add variables to the procedure.
Insert the new variables. Select Object After or Object At from the Insert menu on the toolbar or right-click and select Insert Object After or Insert Object At from the context menu. For more information, see Inserting Objects.
In the example below, selecting Object After from the Insert menu inserts a Variable1 with a default Type of Long and Val Parameter in the Variables View of the Procedures View:
To rename or change the properties of this variable, click on the variable. Right-click and select Properties to display the Properties window.
For more information on the Procedures View window, see Procedures View.
Two types of variables are used:
Procedure parameters — variables passed into or out of the procedure.
Procedure local variables — variables used only within the procedure.
For more information, see Procedure Parameters and Procedure Local Variables.