Consultor Eletrônico



Kbase P121736: Incorect format when displaying character value as date
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/01/2007
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.x

SYMPTOM(s):

Incorrect format when displaying character value as date

Character separators are not displayed

Using BUFFER-FIELD and BUFFER-VALUE to display the value

Working fine in 9.1x

CHANGE:

Upgrade to OpenEdge 10.x

CAUSE:

Before OpenEdge 10.x, there was not enough room to store the format of variables in the rcode, so for character variables, the default "X(8)" format was always applied when setting the BUFFER-VALUE. The format info was added into the r-code due to the 32-bit offsets expansion of the r-code in OpenEdge 10

FIX:

Format the character value to a date format before displaying it.
Example: DISPLAY STRING( <buffer-field-hanle>:buffer-value, "99/99/9999" ) FORMAT "x(10)".