Microsoft KB Archive/88983

= Approximating the Size of a .DBF File in FoxBASE+ =

Article ID: 88983

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Fox Software FoxBASE+ 1.21 for MS-DOS
 * Microsoft FoxBASE+ 2.5 for MS-DOS

-



This article was previously published under Q88983



SUMMARY
The following formula approximates the space required to store a .DBF database file: RECSIZE * (RECCOUNT + 1) The RECSIZE function returns the number of bytes for each record, and the RECCOUNT function returns the number of records in the .DBF file.

This can be very useful when trying to write backup routines for an application. This could be used in conjunction with the DISKSPACE function to determine if the backup copy of the database would fit on a disk.

Keywords: KB88983

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.