CT_DbfDskSize

DbfDskSize()
 Determines the size of a selected (.dbf) file on a disk drive
------------------------------------------------------------------------------
 Syntax

     DbfDskSize() --> nFileSize

 Returns

     DbfDskSize() returns the size of the current database on the floppy or
     hard disk (i.e., how many bytes are saved in this file).

 Description

     One of the DbfDskSize() function's most useful applications is when it
     is used in conjunction with DbfSize().  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 operates on the currently SELECTed work area.

 Example

     Determine if a portion of data input has been written out to disk yet:

     
     IF DbfSize() - DbfDskSize() >= 512 
       * COMMIT // Warning! Works only with DOS 3.3 and up 
     ENDIF


See Also: DbfSize()

 

Advertisements

Tools — Database Functions

Introduction Database Functions
DBFDSKSIZE() Determines the size of a selected (.dbf) file on a disk drive
DBFSIZE()    Determines the size of a selected (.dbf) file in memory
FIELDDECI()  Determines the number of decimal places in a field
FIELDNUM()   Determines field number for a specific field in a database file
FIELDSIZE()  Determines the size of a field
FIELDTYPE()  Determines the data type for a field
ISDBT()      Determines if a memo file (.dbt) is present