Kbase P134290: LOGICAL() function does not set ERROR-STATUS:ERROR when conversion error occurs
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/11/2008 |
|
Status: Unverified
SYMPTOM(s):
LOGICAL() function does not set ERROR-STATUS:ERROR when conversion error occurs
FACT(s) (Environment):
ERROR-STATUS:NUM-MESSAGES = 1
ERROR-STATUS:GET-NUMBER(1) = 87
ERROR-STATUS:GET-MESSAGE(1) = "** Input value: <input> should be <yes
o>. (87)"
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
CAUSE:
This is expected behavior. Functions are not required to raise an error condition when they cannot return the requested value. They may generate a numbered error message that explains why the requested value could not be returned.
FIX:
To determine programmatically whether a function was able to perform the task that was requested, check ERROR-STATUS:NUM-MESSAGES to see if a message was generated.