xHarbour Reference Documentation > Function Reference |
Retrieves the number of bytes required to store a database record.
RecSize() --> nBytes
The function returns a numeric value indicating the record length, or number of bytes required to store a record in a database open in a work area. If no database is open in the work area, the return value is zero.
RecSize() is an informational database function used to determine the record length of the database open in a work area. The record length refers to the number of bytes a database file grows when a new record is added to the database with APPEND BLANK.
See also: | DbInfo(), DiskSpace(), FCount(), FieldName(), Header(), LastRec(), RecNo() |
Category: | Database functions |
Source: | rdd\dbcmd.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example implements a user-defined function which calculates // the file size of a DBF file. FUNCTION DbfFileSize() RETURN ( (RecSize() * LastRec()) + Header() + 1 )
http://www.xHarbour.com