Include files for temp-table definitions
- Last Updated: October 29, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
An ABL include file is a file that contains ABL code that is included in another procedure or class when the procedure or class is compiled. The extension of an ABL include file is .i. You use include files to place common code in a separate file where the common code is typically shared by other procedures or classes in your application. A best practice is to place the definitions of a temp-table that is shared by user interface logic and business logic into an include file.
The following example code shows a temp-table definition placed in a separate
file called ttOrder.i.
|
To use the include file in your code, surround the pathname of the
include file with curly braces (
{}) and place it in the
code where you would like it to go. A temp-table definition would typically go near the
beginning. You can specify a path relative to the PROPATH environment
variable.
|