Consultor Eletrônico



Kbase P32016: The DISPLAY statement is not displaying all the string.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   7/16/2003
Status: Unverified

SYMPTOM(s):

The DISPLAY statement is not displaying all the string.

Running code similar to the following:

DEFINE VARIABLE c AS CHARACTER NO-UNDO.
ASSIGN
c = "1234567890".
DISPLAY c.

displays "12345678" and not the whole "1234567890" string.

CAUSE:

This is expected behavior. The default DISPLAY format for character variables is "X(8)".

FIX:

Use the FORMAT option of the DISPLAY statement to specify the number of characters to be displayed:

DEFINE VARIABLE c AS CHARACTER NO-UNDO.
ASSIGN
c = "1234567890".
DISPLAY c FORMAT "X(10)".