Difference between revisions of "DISKSPACE()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return available disk space | Function to return available disk space | ||
− | |||
==Syntax== | ==Syntax== | ||
DISKSPACE() | DISKSPACE() | ||
− | |||
==See Also== | ==See Also== | ||
[[HEADER()]], [[RECCOUNT()]], [[RECSIZE()]], [[SET DEFAULT]] | [[HEADER()]], [[RECCOUNT()]], [[RECSIZE()]], [[SET DEFAULT]] | ||
− | |||
==Description== | ==Description== | ||
− | The DISKSPACE() function returns the available space on the default disk drive. The available space is represented in bytes as a numeric value. | + | The DISKSPACE() function returns the available space on the default disk drive. The available space is represented in bytes as a numeric value. |
− | + | ||
==Example== | ==Example== | ||
Line 27: | Line 23: | ||
endif | endif | ||
</code> | </code> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 11:28, 10 February 2012
Contents
Purpose
Function to return available disk space
Syntax
DISKSPACE()
See Also
HEADER(), RECCOUNT(), RECSIZE(), SET DEFAULT
Description
The DISKSPACE() function returns the available space on the default disk drive. The available space is represented in bytes as a numeric value.
Example
? diskspace() 60754290 // Example of a routine within a program use patrons size = header()+recsize()*reccount() if size > diskspace() dialog box "Insufficient disk space." return endif