xHarbour Reference Documentation > Function Reference |
Returns the size of the database file header.
Header() --> nBytes
The function returns the number of bytes occupied by the file header of a database open in a work area, or zero if the work area is unused.
The database function Header() is used in conjunction with LastRec() and RecSize() to compute the size of a database file.
See also: | DbInfo(), DiskSpace(), LastRec(), RecSize() |
Category: | Database functions |
Source: | rdd\dbcmd.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example implements a user-defined function that returns the // file size of a database. PROCEDURE Main USE Customer NEW ? DbfSize() USE RETURN FUNCTION DbfSize() RETURN ( (RecSize() * LastRec()) + Header() + 1 )
http://www.xHarbour.com