Comparative procedures
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Comparative procedures
The procedure-based sample application consists of several procedure
files. Most of these files represent persistent procedures (procedure objects),
and two of the files represent separate main-line procedures, each
of which drives the application in a manner corresponding to one
of the two Main class constructors in the class-based
sample. The procedure objects also form super procedure relationships
that are similar to the class hierarchies defined in the class-based
sample. The following is a description of the relationships among
these procedures, where ProcObject refers to a procedure object:
|
The descriptions and code listings for these files follow.
This is the top-level super procedure that provides common error handler and time-tracking routines:
CommonProc.p
|
CustProc.p
This is a procedure that extends CommonProc.p to provide
general functionality for handling customers and is a super procedure for
the NECustProc.p procedure, that handles New England
customers:
|
NECustProc.p
This procedure extends CustProc.p to handle
New England customers by overriding the GetCustomerName procedure
to return the customer’s E-mail address along with their name:
|
CreditProc.p
This procedure provides a notification of customers who have exceeded their credit limit:
|
MsgProc.p
This procedure provides a common error handler for other procedures to report error information:
|
Main.p
This procedure is the main driver for running the comparative procedures based on the CustProc.p procedure object:
|
NEMain.p
This procedure is the main driver for running the comparative procedures based on the NECustProc.p procedure object:
|