ExportTableTranslation()

Summary

Creates a new table containing the codes and values from an existing translation table.

Chan

Return value and MEM class added in Version 2016.

Syntax

new_view_name = ExportTableTranslation(string reftable, string output_class, string output_filename, array options)

Argument Contents
reftable The name of a view referring to a fixed-format ASCII or fixed-format binary table file
output_class Class of new table to create (dBASE, FFA, FFB, CSV, or MEM)
output_filename File name for the new table

No options are currently supported.

Returns

A string containing the name of the view, when a MEM table is created, otherwise null.

Notes

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

  • The tables created with the MEM class are stored in memory instead of being stored on disk, and persist in memory until closed with CloseView() or until the program is closed.

  • file_name is ignored for tables created with the MEM class.

  • The codes remain attached to reftable even after they are exported to a new file. To remove the codes, use DetachTableTranslation().

Example

ExportTableTranslation("Highways", "dBASE", "c:\\data\\codes.dbf", )

Error Codes

Error Type Meaning
NotFound The reftable does not have a translation table attached to it

See Also

Function Summary
AttachTableTranslation() Attaches a translation table (codes) to an existing table
DetachTableTranslation() Removes a translation table (codes) from an existing table
TableHasTranslation() Indicates whether a table has an existing translation table (codes)