Purpose
Provides the functionality of MapInfo Pro's Pack Table command (on the TABLE tab, click Table). You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
Pack Table table { Graphic | Data | Graphic Data } [ Interactive ]
table is a string representing the name of an open table that does not have unsaved changes.
Description
To pack a table's data, include the optional Data keyword. When you pack a table's data, MapInfo Pro physically deletes any rows that had been flagged as "deleted."
To pack a table's graphical objects, include the optional Graphic keyword. Packing the graphical objects removes empty space from the map file, resulting in a smaller table. However, packing a table's graphical objects may cause editing operations to be slower.
The Pack Table statement can include both the Graphic keyword and the Data keyword, and it must include at least one of the keywords.
A Pack Table statement may cause map layers to be removed from a Map window, possibly causing the loss of themes or cosmetic objects.
If you include the Interactive keyword, MapInfo Pro prompts the user to save themes and/or cosmetic objects (if themes or cosmetic objects are about to be lost). This statement cannot pack linked tables. Also, this statement cannot pack a table that has unsaved edits. To save edits, use the Commit Table statement.
Packing Access Tables
The Pack Table statement saves a copy of the original Microsoft Access table without the column types that MapInfo Pro does not support. If a Microsoft Access table has MEMO, OLE, or LONG BINARY type columns, those columns are lost during a pack.