Function LUpdate() Foundation

Returns the date of the last change to a database file.

Syntax
LUpdate() --> dDate
Return

The return value of LUpdate() is a date value indicating the date of the last change to the database file in a work area. If no file is open in the work area, an empty date is returned (DtoC("")).

Description

The database function LUpdate() returns the date of the last change to a database file in a work area. If the function is used without the alias operator, the date of the last change to the file in the current work area is returned. During write access to a database file, the date last modified is updated only when the file is closed.

Examples
LUpdate()
// The example shows the return value of LUpdate() and 
// demonstrates how the date last modified is updated only 
// when the database file is closed. 

PROCEDURE Main 
   USE Invoice NEW EXCLUSIVE 

   ? Date()                // result: 12/06/94 
   ? LUpdate()             // result: 11/27/94 

   REPLACE Invoice->Payment WITH 1234.56 

   ? LUpdate()             // result: 11/27/94 

   CLOSE Invoice 

   USE Invoice NEW 
   ? LUpdate()             // result: 12/06/94 

   CLOSE Invoice 
RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.