Kbase 16279: How to define a Pre-processor to be an include file ( .i )
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to define a Pre-processor to be an include file ( .i )
How to define a pre-processor to be an include file
---------------------------------------------------
Consider the following .p file:
&scoped-define bang {test1.i}
{&bang}
Where test1.i is defined to be:
message "hi".
pause 55.
bell.
pause 3.
The scoped-define statement will not define the 'bang' pre-processor
to be ALL of the code that is included in test1.i. Instead, it will
define 'bang' ONLY to be the first line of code in test1.i; therefore,
the results will be:
/* test1.p */ &scoped-define bang message "hi".
&scoped-define bang message "hi".
pause 55.
bell.
pause 3.
If you want the entire test1.i file to be included when the
{&bang} statement is interpreted then the correct definition is:
&scoped-define bang ~{test1.i}
Progress Software Technical Support Note # 16279