The information in this article applies to:
SYMPTOMSWhen 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. CAUSEThe 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. RESOLUTIONUse one of the following workarounds:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. MORE INFORMATION
The LUPDATE() function returns the date of the last update to the table in
the currently selected work area or in a specified work area. The "last
updated" date and time are not updated by the operating system until the
file is closed. When you close a modified table, FoxPro writes the current
system date of the computer into the header of the table file.
Steps to Reproduce Behavior
REFERENCESFor more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site: http://www.microsoft.com/y2k/For more information about the LUPDATE(), FDATE(), and ADIR() functions, please see the following articles in the Microsoft Knowledge Base: Q130165 PRB: LUPDATE() Does Not Return Date of Last Update Q113943 New and Enhanced Commands and Functions in FoxPro Ver 2.6 Q100554 Using ADIR() Function to Obtain MS-DOS File Information Microsoft FoxPro Help, "LUPDATE() Function" Microsoft FoxPro Help, "FDATE() Function" Microsoft FoxPro Help, "ADIR() Function" © Microsoft Corporation 1999, All Rights Reserved. Additional query words: Y2K
Keywords : kb2000 kbMAC kbUNIX kbVFp FoxDos FoxWin FxenvGeneral FxprgTable |
Last Reviewed: April 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |