Consultor Eletrônico



Kbase P86875: string function returns '?' with Longchar data type
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/15/2009
Status: Unverified

SYMPTOM(s):

string function returns '?' with Longchar data type

STRING function fails with longchar data type.

DEFINE VARIABLE lcVariable AS LONGCHAR NO-UNDO.
DEFINE VARIABLE c1 AS CHARACTER NO-UNDO.
DEFINE VARIABLE c2 AS CHARACTER NO-UNDO.

lcVariable = 'abcdef':U.

c1 = lcVariable.
c2 = string(lcVariable).

In this example the c2 value results in '?'

FACT(s) (Environment):

OpenEdge 10.x

CAUSE:

This is a known issue being investigated by Development

FIX:

Workaround:
Assign the longchar variable to the character variable directly. For example:

c1 = lcVariable.