Kbase P140017: 4GL/ABL: Error (223) using IF...THEN...ELSE function to assign ? to a DotNet object
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/01/2009 |
|
Status: Unverified
SYMPTOM(s):
4GL/ABL: Error (223) using IF...THEN...ELSE function to assign ? to a DotNet object
** Incompatible data types in expression or assignment. (223)
The following code fails with error 223 at compile time:
DEFINE VARIABLE objDotNet AS CLASS System.Object NO-UNDO.
objDotNet = IF TRUE THEN
objDotNet
ELSE
?.
FACT(s) (Environment):
Windows
OpenEdge 10.2A
CAUSE:
Bug# OE00180047
FIX:
None at this time. A workaround is to use the IF...THEN...ELSE statement instead of the IF...THEN...ELSE function. For example, rewrite the above code as follows:
DEFINE VARIABLE objDotNet AS CLASS System.Object NO-UNDO.
IF TRUE THEN
objDotNet = objDotNet.
ELSE
objDotNet = ?.