[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DBFSIZE()
 Determines the size of a selected (.dbf) file in memory
------------------------------------------------------------------------------
 Syntax

     DBFSIZE() --> nFileSize

 Returns

     DBFSIZE() returns the byte size of the current database in working
     memory.

 Description

     DBFSIZE() determines how much room a database occupies, before you write
     this file to a disk.  The function is also useful when used in
     conjunction with DBFDSKSIZE().  When the results for both functions
     indicate there is a deviation in the size of a database, this means a
     portion of the data is not yet written to the floppy/hard disk.  You can
     also determine if and when new input is written to a floppy/hard disk.

 Note

     .  This function always operates on the currently SELECTed work
        area.

 Example

     Can a (.dbf) file be copied to the target disk?

     USE DATA.
     IF DISKFREE("A") < DBFSIZE().
        ? "The file can not be copied.".
        ? "Insufficient space remaining on disk.".
     ELSE.
        COPY TO A:COPY.
     ENDIF


See Also: DBFDSKSIZE() DISKFREE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson