Consultor Eletrônico



Kbase P26414: Contents of field that is changed programmatically does not
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/06/2003
Status: Unverified

SYMPTOM(s):

Contents of field that is changed programmatically does not stay properly formatted

CAUSE:

The 4GL code that is programmatically modifying the contents of the field is using the SUBSTRING statement. The SUBSTRING statement is documented to possibly change the length of the string if the value being assigned is not the same length as specified in the SUBSTRING statement.

FIX:

Modify the source code and replace the use of the SUBSTRING statement with the OVERLAY statement. The OVERLAY statement was designed to replace pieces of a string without changing the length of the string.