Consultor Eletrônico



Kbase P99788: Editor MAX-CHARS allows more characters to be displayed
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

FACT(s) (Environment):

Progress 7.x
Progress 8.x
Progress 9.x
OpenEdge 10.x

SYMPTOM(s):

Editor MAX-CHARS allows more characters to be displayed

The EDITOR SCREEN-VALUE attribute can be setup regardless MAX-CHAR value

In the following example when pressing the 'F1' key will display more characters than MAX-CHARS value:

DEF VAR s AS CHAR VIEW-AS EDITOR SIZE 40 BY 10 MAX-CHARS 20.
DEF FRAME f
s
WITH SIZE 50 BY 12.
ON 'F1' anywhere
DO:
ASSIGN s:SCREEN-VALUE IN FRAME f = "jklgjdfklgjsdfklgdjfgkgkdflgjdfklgdskljfgsklsfgjQ".
MESSAGE s:LARGE IN FRAME f
length(s:SCREEN-VALUE IN FRAME f) VIEW-AS ALERT-BOX.
RETURN.
END.

ENABLE ALL WITH FRAME f.
WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW.

CAUSE:

This is a known issue being investigated by Development

FIX:


Use MAX-CHARS value to truncate the string before SCREEN-VALUE is used.