Consultor Eletrônico



Kbase P127750: A changed variable value is not saved.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/12/2007
Status: Unverified

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x
Progress 9.x
Progress 8.x
OpenEdge Category: Language (4GL/ABL)

SYMPTOM(s):

A changed variable value is not saved.

In a local internal procedure a global variable is assigned a value.

In the main block of the procedure the assignment is not saved or the variable is reset.

CAUSE:

The code includes a global definition of a variable and also a local (to the internal procedure) definition of a variable with the same name. Within the internal procedure the local variable is being updated, and the global procedure checked in the main block. So it looks like the variable has been reset, or its value is not being saved.

FIX:

Delete the variable definition in the internal procedure.