Consultor Eletrônico



Kbase P179511: 4GL/ABL: Error (14422) referencing the BEFORE-TABLE of a STATIC TEMP-TABLE from a STATIC method in a
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/23/2010
Status: Unverified

SYMPTOM(s):

4GL/ABL: Error (14422) referencing the BEFORE-TABLE of a STATIC TEMP-TABLE from a STATIC method in a class.

Static methods, property accessors, and constructors may only reference static members of the class. '<name>' is an instance member. (14422)

Static methods, property accessors, and constructors may only reference static members of the class. 'bi-name' is an instance member. (14422)

The error is generated when checking the syntax or compiling the code of the following class:

CLASS class1:
DEFINE PRIVATE STATIC TEMP-TABLE tt-name NO-UNDO
BEFORE-TABLE bi-name
FIELD f1 AS CHARACTER.

METHOD PUBLIC STATIC VOID test-write():
FOR EACH bi-name:
END.
END METHOD.
END CLASS.

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.2A
OpenEdge Category: Language (4GL/ABL)

CAUSE:

Bug# OE00174117

CAUSE:

Static before images associated with static temp-tables were not being marked as static.

FIX:

Upgrade to OpenEdge 10.2B or higher. If upgrade is not feasible, remove the STATIC method modifier. For example:

CLASS class1:
DEFINE PRIVATE STATIC TEMP-TABLE tt-name NO-UNDO
BEFORE-TABLE bi-name
FIELD f1 AS CHARACTER.

METHOD PUBLIC VOID test-write():
FOR EACH bi-name:
END.
END METHOD.
END CLASS.