FIX: LUPDATE() Does Not Report Correct Century for Year 2000 (176481)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for MS-DOS 2.6a
- Microsoft Visual FoxPro for Macintosh 3.0b
- Microsoft FoxPro for UNIX 2.6
- Microsoft FoxBASE+ for MS-DOS 2.1
- Microsoft FoxBASE+ for Macintosh 2.01
- Microsoft FoxPro for Macintosh 2.6a
This article was previously published under Q176481 SYMPTOMS
When you use SET CENTURY ON with a computer that has the system date set to
the year 2000 and a modification is made to the structure of a table (.dbf)
file, or a copy of the table file is made, the LUPDATE() function
incorrectly displays the century as 1900.
CAUSE
The date of the last update is stored in the header of the .dbf file. The
LUPDATE() function reads the date of last update from the header of the
.dbf file. This problem is caused by the manner in which FoxPro writes the
date into the table's file header.
RESOLUTION
Use one of the following workarounds:
NOTE: Because FoxBase does not support either the FDATE() or ADIR()
function, these workarounds do not apply to FoxBase.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Visual FoxPro6.0.
Modification Type: | Minor | Last Reviewed: | 3/10/2005 |
---|
Keywords: | kbbug kbfix KB176481 |
---|
|