CT_DBFSIZE

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()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.