Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>dbfsize()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson