A procedure is a set of instructions that works as a unit and can be called from a test or another procedure. A procedure contains a name and description, parameters and variables, programming code, and a return value.
This chapter only describes user-defined procedures, which can either be a function that returns one type of value or a subroutine that returns no values. You can declare user-defined procedures either in the Program, System or Driver modules, or in Forms. Once a procedure is declared, you call a procedure by specifying the procedure name and its parameters.
Overall ATEasy provides the following five types of procedures:
Type of Procedure |
Description |
Resides in |
See Also |
User-Defined Procedures |
Created by you. You can change the parameters, local variables, and code. |
Program, System, Driver, Forms |
This chapter |
Module Events |
Called when special events occur. You can change only the code and local variables. Parameters are fixed. |
Modules (Program, System, Driver) and Submodule (Forms, Controls, and Menus) |
|
Dynamic Link Library (DLL) Procedures |
Defined by you to describe a procedure and parameters that reside in an external library. |
DLL Library |
|
I/O Tables |
Used to send, receive, and control external devices. You define the name and operations, such as send or receive. The parameters are implied from the operation. |
Driver I/O Tables Submodule |
|
COM Methods/Procedure |
Is part of a COM Library in a COM class. The COM method has predefined properties. The procedure or methods definition is imported from a type library. |
External Type Library |