Consultor Eletrônico



Kbase P120100: CR/LF characters pasted into a fill-in result in garbage characters
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/09/2010
Status: Unverified

SYMPTOM(s):

CR/LF characters pasted into a fill-in result in garbage characters

Fill-in does not allow CR/LF to be typed manually

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x
Windows
OpenEdge Category: Language (4GL/ABL)

CAUSE:

Bug# OE00134838

FIX:

Upgrade to OpenEdge 10.1B or later.

Workaround:
The standard behavior is not allow these characters into a fill-in. For example, these characters cannot be typed directly into the fill-in. To maintain this behavior create the following VALUE-CHANGED trigger for the fill-in:
DO:
DEFINE VARIABLE screenVal AS CHARACTER NO-UNDO.
DEFINE VARIABLE i AS INTEGER NO-UNDO.
screenVal = SELF:SCREEN-VALUE.
DO i = 1 TO LENGTH(screenVal):
CASE SUBSTRING(screenVal,i,1):
WHEN CHR(13) OR WHEN CHR(10) THEN DO:
ASSIGN SELF:SCREEN-VALUE = SUBSTRING(screenVal,1, i - 1).
LEAVE.
END.
END CASE.
END.
END.
This will paste only the characters that exist before the CR/LF.