Creating Procedures

To create a procedure:

  1. Select the Procedures submodule under either the Program, System, or Driver module.

  2. Right-click on the Procedures submodule and select Insert Object Below from the context menu.

  1. Select the new procedure, right-click, and select Properties from the context menu, or alternatively select the Properties icon from the toolbar. This displays the Procedure Properties window.

  2. Enter a name, description, the Return type, if required, and whether the procedure is public in the Procedures Properties window.

  1. Declare any procedure local variables and parameters in the Variables View of the Procedures View.

To add a new variable or parameter to the procedure, click in the Variable View. Right-click and select Insert Object After from the context menu, or alternatively select Object Below from the Insert menu on the toolbar.

To change properties for the new variable or parameter, right-click and select Properties from the context menu to display the Properties window.

  1. Enter programming code for the procedure in the Code View.

For more information on entering code in procedures, see Entering Code.

After you create a procedure, you can call it as explained in Calling Procedures and in How ATEasy Searches for Procedures.