PreviousNextIndex

&GLOBAL-DEFINE preprocessor directive

Globally defines a compile-time constant (preprocessor name).

Syntax

&GLOBAL-DEFINE preprocessor-name definition 

preprocessor-name
definition
Examples

In this example, the preprocessor name MAX-EXPENSE is defined as the text string "5000":

&GLOBAL-DEFINE MAX-EXPENSE 5000 

Wherever the reference {&MAX-EXPENSE} appears in the source code, the preprocessor substitutes the text string “5000". For example, the preprocessor changes this line of code:

IF tot-amount <= {&MAX-EXPENSE} THEN DO: 

To this line:

IF tot-amount <= 5000 THEN DO: 

Notes
See also

{ } Preprocessor name reference, &SCOPED-DEFINE preprocessor directive, &UNDEFINE preprocessor directive, DEFINED preprocessor function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex