Xbasic

TABLE.ZIP Function

Syntax

L Table.Zip(C tablename [,C zipfilename [,C options]])

Arguments

tablenameCharacter

The table to put into the zip file. If the table is in the current database, it is not necessary to specify the full drive and path.

zipfilenameCharacter

Default = <Table_Name>.ZIP extension.The name of the zip file to create.

optionsCharacter

Options is a string that can include one or more of the following flags:

Option Flag
Meaning
C

Compress (pack) the table before zipping.

P

Display the "Zip Table" dialog box. If "P" not specified, the table is zipped without any user prompting.

D

Include the data dictionary files.

X

Include index file.

Description

Zip a table.

Discussion

The TABLE.ZIP() method creates a zip file containing the table specified by Table_Name. If the table specified by Table_Name is in the current database, it is not necessary to specify the full drive and path.

To zip a set, use the <SET>.ZIP() method.

Example

This script zips a table and includes the dictionary and indexes.

table.zip("c:\mydata\customers","","DX")

See Also