Consultor Eletrônico



Kbase P9656: Editor data is printed with extra lines.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/20/2008
Status: Verified

SYMPTOM(s):

Editor data is printed with extra lines.

Return characters (<enter>) were pressed at the end of the editor lines.

CAUSE:

Progress stored the entered return characters (<enter>) as part of the field (editor) value.

FIX:

Use the REPLACE 4GL Function to get rid of the return characters (<enter>) that were entered in the editor widget and were stored in the associated field value. e.g.:

DEFINE VARIABLE vcAuxComments AS CHARACTER NO-UNDO.
ASSIGN vcAuxComments = REPLACE(customer.comments /* editor widget */,CHR(10),"").
DISPLAY customer.comments vcAuxComments
WITH FRAME fDisplay.