CompressTable()


Physically removes deleted records from a database (DBF) table in the currently open company directory.

Syntax

CompressTable(<cTable>) --> lResult

Arguments

<cTable> --> The name of the database file to open.

Returns

Returns logical TRUE if the table was successfully compressed, otherwise FALSE if there was a problem with the compression request. For example, the table could not be found or could not be opened exclusively.

Description

This function compresses a CAPITAL database (DBF) file.

generate/mistake2.gifA database table can only be compressed if it can successfully be opened exclusively. This means that no other system or process must have the table open at the same time. If the table is already open in another session or on another PC, this function will return a FALSE statement. However, this will not raise an error message in this case.

____________________________

Related Topics:

Business Function List

CreateTable()



CAPITAL VISUAL BUILDER