Kbase P43116: Error (218) when an include file is referenced more than once
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/30/2006 |
|
Status: Unverified
SYMPTOM(s):
Error (218) when an include file is referenced more than once
** Duplicate variable name--<name>. (218)
Referencing an include file in the same program code more than one time
Using two or more include files that define variables with the same name
CAUSE:
Variables are duplicated at compile time
FIX:
Define a global preprocessor within the include file code in order to avoid duplicating the variables. Example:
&IF DEFINED( _MY_INCLUDE ) EQ 0 &THEN
&GLOB _MY_INCLUDE
DEF VAR v1 AS INTEGER.
&ENDIF