Sets the size on disk of the specified file to the specified length.
Syntax
int _FCHSize(FCHAN chan, long length)
FCHAN chan; /* File to change. */
long length; /* New length for the file in bytes. */
Remarks
The specified length may extend or truncate the file. _FCHSize( ) returns 0 if it's successful in changing the length of the file, or – 1 if it fails.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.