Consultor Eletrônico



Kbase P117430: Error 223 when chaining longchar with a dynamic-function that returns a CHAR
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   7/20/2006
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.x

SYMPTOM(s):

Cannot chain a character variable with a LONGCHAR using the '+' operator


When using a DYNAMIC-FUNCTION to return the character variable


An expression like this returns error 223:
myLongChar = myLongChar + DYNAMIC-FUNCTION("returnChar":U).


** Incompatible data types in expression or assignment. (223)

These expressions all work fine:

myLongChar = myLongChar + myChar.
myLongChar = myLongChar + returnChar().

CAUSE:

This is a known issue being investigated by Development

FIX:

Enclose the DYNAMIC-FUNCTION within a STRING function:
myLongChar = myLongChar + STRING(DYNAMIC-FUNCTION("returnChar":U)).