Try OpenEdge Now
skip to main content
Online Help
Introducing the ABL Editor : Reference : ABL Editor preferences : Editor Templates (Macros) options
 
Editor Templates (Macros) options
The Templates page lets you manage the set of macros, or templates, available in your workspace. This page appears when you select Window > Preferences > Progress OpenEdge > Editor > > Templates (Macros).
This page provides the following options:
Template list
Displays the available templates. Templates that are checked are available for use; those that are not checked are disabled.
Preview
Displays the pattern for the selected template.
New
Launches the New Template dialog to add a template.
Edit
Launches the Edit Template dialog to enable you to edit the definition of the selected template.
Remove
Deletes the selected templates.
Restore Removed
Undoes any deletions.
Revert to Default
Undoes changes to the selected templates, resetting them to their default definitions. This command is available only when all selected entries are predefined templates installed with Progress Developer Studio for OpenEdge.
Import
Imports an XML file of template definitions.
Export
Writes the selected template definitions to an XMl file, abbreviations.xml by default.
Restore Defaults
Resets the list of templates to its as-installed state, undoing all modifications.
Apply
Stores your changes to the current workspace configuration.
Note: Macros created in versions earlier than OpenEdge 10.1C are not compatible with the current version and must be migrated to templates before you can use them. If you have such macros in your workspace, select OpenEdge > Migration > Migrate 10.1A or 10.1B Macros to Templates to launch the migration tool.

Default ABL Editor templates

Default ABL Editor templates are listed in the table below. The string ${cursor} in the pattern is a control sequence that is not expanded, but rather determines where the cursor is positioned after the template is expanded.
Sequence
Description
Associated Pattern
&FR	
Frame name	
{&FRAME-NAME} ${cursor}
&GL
Global name
&GLOBAL-DEFINE ${cursor}
&SC
Scope defined
&SCOPED-DEFINE ${cursor}
CMT
Comment
/* ${cursor} */
DED
Event with delegate
DEFINE EVENT ${cursor} DELEGATE
DES
Event with signature
DEFINE EVENT ${cursor} SIGNATURE
DVCH
Character variable
DEFINE VARIABLE ${cursor} AS CHARACTER
DVDE
Decimal variable
DEFINE VARIABLE ${cursor} AS DECIMAL
DVDT
Date variable
DEFINE VARIABLE ${cursor} AS DATE
DVHN
Handle variable
DEFINE VARIABLE ${cursor} AS HANDLE
DVIN
Integer variable
DEFINE VARIABLE ${cursor} AS INTEGER
DVLG
Logical variable
DEFINE VARIABLE ${cursor} AS LOGICAL
DVMP
CHAR variable
DEFINE VARIABLE ${cursor} AS MEMPTR
DVRI
ROWID variable
DEFINE VARIABLE ${cursor} AS ROWID
DVWH
Widget variable
DEFINE VARIABLE ${cursor} AS WIDGET
IOPCH
Character INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS CHARACTER
IOPDE
Decimal INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS DECIMAL
IOPDT
Date INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS DATE
IOPHN
Handle INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS HANDLE
IOPIN
Integer INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS INTEGER
IOPLG
Logical INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS LOGICAL
IOPMP
Memptr INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS MEMPTR
IOPRI
ROWID INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS ROWID
IOPWH
Widget INPUT-OUTPUT
DEFINE INPUT-OUTPUT PARAMETER ${cursor} AS WIDGET
IPCH
Character INPUT
DEFINE INPUT PARAMETER ${cursor} AS CHARACTER
IPDE
Decimal INPUT
DEFINE INPUT PARAMETER ${cursor} AS DECIMAL
IPDT
Date INPUT
DEFINE INPUT PARAMETER ${cursor} AS DATE
IPHN
Handle INPUT
DEFINE INPUT PARAMETER ${cursor} AS HANDLE
IPIN
Integer INPUT
DEFINE INPUT PARAMETER ${cursor} AS INTEGER
IPLG
Logical INPUT
DEFINE INPUT PARAMETER ${cursor} AS LOGICAL
IPMP
Memptr INPUT
DEFINE INPUT PARAMETER ${cursor} AS MEMPTR
IPRI
ROWID INPUT
DEFINE INPUT PARAMETER ${cursor} AS ROWID
IPWH
Widget INPUT
DEFINE INPUT PARAMETER ${cursor} AS WIDGET
MES
Message
MESSAGE ${cursor}
OPCH
Char OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS CHARACTER
OPDE
Decimal OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS DECIMAL
OPDT
Date OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS DATE
OPHN
Handle OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS HANDLE
OPIN
Integer OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS INTEGER
OPLG
Logical OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS LOGICAL
OPMP
Memptr OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS MEMPTR
OPRI
ROWID OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS ROWID
OPWH
Widget OUTPUT
DEFINE OUTPUT PARAMETER ${cursor} AS WIDGET