BUG: LUPDATE() Does Not Report Correct Century for Year 2000Last reviewed: March 20, 1998Article ID: Q176481 |
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.
RESOLUTIONHere are two workarounds:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe 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. With a network, there is no guarantee that all the computers have a synchronized date and time. If the LUPDATE() function makes it appear that the table has not been updated today and then new information is entered into the table, you could be overwriting new data entered from a computer that has the wrong system date.
Steps to Reproduce Behavior
REFERENCESFor more information about the LUPDATE(), FDATE(), and ADIR() functions, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q130165 TITLE : PRB: LUPDATE() Does Not Return Date of Last Update ARTICLE-ID: Q113943 TITLE : New and Enhanced Commands and Functions in FoxPro Ver 2.6 ARTICLE-ID: Q100554 TITLE : Using ADIR() Function to Obtain MS-DOS File InformationMicrosoft FoxPro Help, "LUPDATE() Function" Microsoft FoxPro Help, "FDATE() Function" Microsoft FoxPro Help, "ADIR() Function" Additional query words Keywords : FoxDos FoxMac FoxUnix FoxWin FxenvGeneral FxprgTable VFoxMac vfoxwin Version : MACINTOSH:2.01,2.6a,3.0b; MS-DOS:2.1,2.6,2.6a; UNIX:2.6; WINDOWS:2.6,2.6a,3.0,3.0b,5.0,5.0a Platform : MACINTOSH MS-DOS UNIX WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |