GetHardLinkClass()

Summary

Gets the class of a table that is hard linked to a database.

Syntax

class = GetHardLinkClass(string view_name)

Argument Contents
view_name The name of a view

Returns

If the view is a geographic layer, it returns the class of the hard-linked table; if the view is not a geographic layer, it returns the class of the table associated with the view. If the view is a joined view or is a geographic layer without a hard link, it returns null.

Notes

  • This function can be used in preparation for modifying the table hard linked to a geographic layer.

Example

layer = GetLayer()
class = GetHardLinkClass(layer)
if class = "dBASE" then
ShowMessage("The class of the hard-linked table is dBASE.")

Error Codes

Error Type Meaning
NotFound The view was not found

See Also

Function Summary
JoinTableToLayer() Permanently joins a single table to a geographic file