Kbase P79291: ASSIGN using an UDF in the WHEN option gives a wrong result
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/02/2010 |
|
Status: Unverified
SYMPTOM(s):
ASSIGN using an UDF in the WHEN option gives a wrong result
ASSIGN using a function in the WHEN option gives a wrong result
ASSIGN using an UDF in the WHEN option GPF
CAUSE:
Bug# OE00103674
FIX:
You may add a dummy AND condition with a YES in order to workaround the problem.
For example if you have the following code:
FUNCTION dummy RETURN LOGICAL:
RETURN TRUE.
END FUNCTION.
DEF VAR i AS INTEGER NO-UNDO.
ASSIGN
i = 1.
ASSIGN
i = 2 WHEN i = 3
i = 3 WHEN DYNAMIC-FUNCTION ( "dummy" ) .
MESSAGE i.
Modify the line:
ASSIGN
i = 3 WHEN DYNAMIC-FUNCTION ( "dummy" ).
to:
ASSIGN
i = 3 WHEN YES AND DYNAMIC-FUNCTION ( "dummy" ) .