Header()
This function tells you the size of a table header. The header contains definition information for the table.
Usage |
nHeaderSize = HEADER( [ cAlias | nWorkArea ] ) |
Example |
CREATE TABLE Test (CharFld C(1),NumFld N(1)) ? HEADER() && Returns 360 * Determine space requirements for Customer: * Header length plus the size of one record, times * the number of records, plus one byte for a * terminating Ctrl+Z if any records exist. USE Customer nSpaceNeeded = HEADER() + RECCOUNT() * RECSIZE() + ; SIGN(RECCOUNT()) |
See Also |