Maptitude GISDK Help

CopyTableFiles()

Summary

Copies all files associated with a table.

 

Syntax

CopyTableFiles(string view_name, string class, string primary, string secondary, string new_primary, string new_secondary)

 

Argument

Contents

view_name

Name of the view that contains the table

class

Class of input table - FFA, FFB, CSV or dBASE

primary

Primary filename for input table

secondary

Secondary filename for input table

new_primary

New primary filename; must be a valid file name

new_secondary

New secondary filename; can be null

 

Notes

 

Example

CopyTableFiles("Sales Data", null, null, null, "c:\\backup.dbf", null)

CopyTableFiles(null, "DBASE", "sales.dbf", "sales.mdx", "backup.dbf", "bindex.mdx")

 

Error Codes

Error Type

Meaning

Error

The input view is not a table (e.g., it is a joined view or a geographic file); the input table is an ODBC table; the input class is not valid; the new_primary argument is null; or a file I/O error occurred (e.g., out of disk space, overwriting a file in use)

NotFound

The input table does not exist or was incorrectly specified

 

See Also

Function

Summary

ListTableFiles()

Lists all the files associated with a table or view

DeleteTableFiles()

Deletes all files associated with a table

RenameTableFiles()

Renames all files associated with a table or view

CopyDatabase()

Copies either a standard- or compact-format geographic file

OpenTable()

Opens a table from a file on disk and creates a view

 

 

©2025 Caliper Corporation www.caliper.com