Consultor Eletrônico



Kbase P108665: Error 223 when compiling application code with message statement
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/9/2005
Status: Unverified

SYMPTOM(s):

Error 223 when compiling application code with message statement

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

** <program> Could not understand line <number>. (196)

CAUSE:

The message statement is concatenating non character data types into the message without converting them to strings first.

FIX:


For example the following line will produce the error 223. Note iField1 and iField2 are integer data type fields.

Message "Finner ikke Fakutet " + iField1 + " for lsted " + iField2.
To resolve the problem use the STRING function to convert the integers to character strings first, e.g.

Message "Finner ikke Fakutet " + STRING(iField1) + " for lsted " + STRING(iField2).
Alternatively the concatenation could be removed and the message statement will perform the data conversions. For example:
Message "Finner ikke Fakutet " iField1 " for lsted " iField2.