DISKSPACE()

From Recital Documentation Wiki
Revision as of 16:29, 23 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Class

Disk and File Utilities


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. You can set the default drive (OpenVMS) and directory with the SET DEFAULT TO command.


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


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer