Difference between revisions of "HEADER()"

From Lianjapedia
Jump to: navigation, search
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return the table header size
 
Function to return the table header size
 
  
 
==Syntax==
 
==Syntax==
 
HEADER()
 
HEADER()
 
  
 
==See Also==
 
==See Also==
 
[[DISKSPACE()]], [[RECCOUNT()]], [[RECSIZE()]]
 
[[DISKSPACE()]], [[RECCOUNT()]], [[RECSIZE()]]
 
  
 
==Description==
 
==Description==
 
The HEADER() function returns the size of a table header.  The table file header contains information about the table, among other things, the field definitions, and the field descriptions.  When used with the RECSIZE() function and the RECCOUNT() function, the HEADER() function allows you to calculate the space which your table occupies.  The total space needed to backup your table can thus be calculated.
 
The HEADER() function returns the size of a table header.  The table file header contains information about the table, among other things, the field definitions, and the field descriptions.  When used with the RECSIZE() function and the RECCOUNT() function, the HEADER() function allows you to calculate the space which your table occupies.  The total space needed to backup your table can thus be calculated.
 
  
 
==Example==
 
==Example==
Line 20: Line 16:
 
size = header() + reccount() * recsize()
 
size = header() + reccount() * recsize()
 
</code>
 
</code>
 
+
 
+
==Products==
+
Recital Server, Recital
+
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 11:30, 10 February 2012

Purpose

Function to return the table header size

Syntax

HEADER()

See Also

DISKSPACE(), RECCOUNT(), RECSIZE()

Description

The HEADER() function returns the size of a table header. The table file header contains information about the table, among other things, the field definitions, and the field descriptions. When used with the RECSIZE() function and the RECCOUNT() function, the HEADER() function allows you to calculate the space which your table occupies. The total space needed to backup your table can thus be calculated.

Example

use mytable
size = header() + reccount() * recsize()