PRB: DATE() Returns a DateTime Type Value From OLE Server (190541)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q190541 SYMPTOMS
The DATE() function returns a data type of Time when evaluated from an OLE
Server or COM object. This behavior is by design because the Date data type
is converted to an OLE variant type during the evaluation.
RESOLUTION
The workaround to this behavior is to convert the return value via the TTOD
(Time to Date) function, for example:
?TYPE('TTOD(_VFP.EVAL("DATE()"))') && This returns "T" for Time
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 8/25/1999 |
---|
Keywords: | kbprb KB190541 |
---|
|