INFO: Visual FoxPro 5.0 Year 2000 Update (239432)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0a

This article was previously published under Q239432

SUMMARY

This article describes a patch for the LUPDATE() function in Visual FoxPro 5.0a. This patch updates the Visual FoxPro LUPDATE() function so it behaves the same as in Visual FoxPro 6.0.

MORE INFORMATION

In Visual FoxPro 5.0, the LUPDATE() function returns the date that a table was last updated. This date is read directly from the .dbf table header. However, because only two digits of the year are stored in the table header, the century in which the table was last updated is interpreted based on the setting of the SET CENTURY TO ROLLOVER.

With this update to Visual FoxPro 5.0, the LUPDATE() function behaves as it does in Visual FoxPro 6.0. In Visual FoxPro 6.0, LUPDATE() queries the Windows operating system to determine the date a table was last updated, allowing users to determine the century in which the table was updated. However, the table header continues to store the last two digits of the year it was last updated. This is done to ensure backward compatibility with other versions of FoxPro.

In order to apply the Visual FoxPro 5.0 year 2000 update, you need to have Visual FoxPro 5.0 Service Pack 3 installed. This update can be downloaded from: Download the LUPDATE() patch from: You can verify that the Visual FoxPro 5.0 2000 update is installed by right-clicking the Vfp.exe in Windows Explorer and selecting the Version tab. The file version should read "5.0a Build 415p."

Modification Type:MajorLast Reviewed:5/10/2006
Keywords:kbinfo kbXBase KB239432