Consultor Eletrônico



Kbase P167375: ENTRY statement fails to compile
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   18/11/2010
Status: Unverified

SYMPTOM(s):

ENTRY statement fails to compile

entry( 2 , entry ( 1 , i-attr, "_" ) , "=" ) = a .

The target of the ENTRY statement must be a field or an unqualified reference to a data member or variable

FACT(s) (Environment):

OpenEdge 10.2B
All Supported Operating Systems

CHANGE:

Applied service pack 10.2B01

CAUSE:

This is expected behavior.

The ABL code is actually invalid as it attempts to assign the result of the ENTY statement directly to the return value of another function; this return value will be discarded at the end of the operation anyway, making this a no-op.
Starting with OpenEdge 10.2B01, the compiler now detects this and raises an error.

FIX:

Modify the code so that a variable is used for the return value of the various operations, and that these operations are called on this variable in the correct sequence.