Consultor Eletrônico



Kbase P90331: Error (74) assigning a value to an INTEGER VARIABLE.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/26/2009
Status: Verified

SYMPTOM(s):

** Value <value> cannot be displayed using <format>. (74)

** Value 127938721 cannot be displayed using ->,>>>,>>9. (74)

Running code similar to:

DEFINE VARIABLE iVariable AS INTEGER NO-UNDO.
iVariable = 127938721.
DISPLAY iVariable.

FACT(s) (Environment):

All Supported Operating Systems
Progress/OpenEdge Product Family

CAUSE:

Since the INTEGER VARIABLE's FORMAT was not defined, it defaults to "->,>>>,>>9" which too short for the assigned value of 127938721.

FIX:

Define a FORMAT for the VARIABLE that is long enough for the assigned value:

DEFINE VARIABLE iVariable AS INTEGER FORMAT ">>>,>>>,>>>" NO-UNDO.
iVariable = 127938721.
DISPLAY iVariable.