TableHasTranslation()

Summary

Indicates whether a table has an existing translation table (codes).

Syntax

rslt = TableHasTranslation(viewname)

Argument Contents
viewname The name of a view referring to a fixed-format ASCII or fixed-format binary table file

Returns

The string "True" if a translation table already exists for this table, or "False" if no translation table exists.

Notes

  • Translation tables (lookup tables) can be used only with fixed-format ASCII and fixed-format binary table files. They cannot be used with dBASE format table files.

Example

code_flag = TableHasTranslation("States")
if code_flag = "True" then ShowMessage("The States table has a lookup table!")

Error Codes

Error Type Meaning
NotFound The viewname is not valid

See Also

Function Summary
AttachTableTranslation() Attaches a translation table (codes) to an existing table
DetachTableTranslation() Removes a translation table (codes) from an existing table
ExportTableTranslation() Creates a new table containing the codes and values that are part of an existing translation table