ListTableFiles()

Summary

Lists all the files associated with a table or view.

Syntax

filenames_array = ListTableFiles(string view_name, string class, string primary, string secondary)

Argument Contents
table_name Name of input view, or null. If this value is not null, the other three arguments are ignored
class Class of input table: "FFA", "FFB", "CSV" or "dBASE"
primary Primary filename for input table
secondary Secondary filename for input table

Returns

An array of the names of files associated with the view or table.

Notes

  • The file types include FFA for fixed-format text (ASCII), FFB for fixed-format binary, and CSV for comma-separated text (values).

  • ListTableFiles() returns a list of all the data, dictionary, and index files associated with the input table.

  • If an input view_name is provided, the other arguments are ignored and ListTableFiles() provides information on the specified view.

  • If all arguments are null, ListTableFiles() provides information on the current view.

  • If the first argument is null, but the others are valid, ListTableFiles() provides information on the table indicated by the class, primary and secondary arguments.

  • Use GetDBFiles() to obtain a list of files associated with a layer.

  • ListTableFiles() returns information only about views that correspond to a single table; not about joined views.

Error Codes

Error Type Meaning
Error The input view is not a table (e.g., it is a joined view); the input table is an ODBC table or a geographic layer; or the input view_name is null and the input class is not a recognized class
NotFound The input view does not exist; or all inputs are null and there is no current view

See Also

Function Summary
DeleteTableFiles() Deletes all files associated with a table
RenameTableFiles() Renames all files associated with a table or view
CopyTableFiles() Copies all files associated with a table
GetDBFiles() Creates a list of files associated with a geographic file