Consultor Eletrônico



Kbase 15141: DATE Function and Alphabetic Input
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
DATE Function and Alphabetic Input

When using the DATE function to convert a variable to a date and then
checking the ERROR-STATUS:ERROR attribute to determine whether the
date conversion was successful, remember to also check the resulting
value for an unknown value (i.e. ?).

You need to do this because the DATE function, when confronted with
an all alphabetic variable to convert, will set the result to a "?"
and *WILL NOT* set the ERROR-STATUS:ERROR attribute to true.

This behaviour has existed since at least V6, and probably much
earlier. We are hesitant to change it since existing applications
may be relying on this behaviour.

Progress Software Technical Support Note # 15141