4D v14.3

Get document size

Home

 
4D v14.3
Get document size

Get document size 


 

Get document size ( document {; *} ) -> Function result 
Parameter Type   Description
document  String, DocRef in Document reference number or Document name
Operator in On Mac OS only: - if omitted, size of data fork - if specified, size of resource fork
Function result  Real in Size (expressed in bytes) of the document

The Get document size command returns the size, expressed in bytes, of a document.

If the document is open, you pass its document reference number in document.

If the document is not open, you pass its name or pathname in document.

On Macintosh, if you do not pass the optional * parameter, the size of the data fork is returned. If you do pass the * parameter, the size of the resource fork is returned.

 
PROPERTIES 

Product: 4D
Theme: System Documents
Number: 479

This command modifies the Error system variableMac OS specific

 
HISTORY 

Modified: 4D v11 SQL Release 3

 
SEE ALSO 

Get document position
SET DOCUMENT POSITION
SET DOCUMENT SIZE

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)