GetDBLinkedData()

Summary

Returns the same array as was passed in to SetDBLinkedData(). .

Changes

Added to Version 2019.

Syntax

GetDBLinkedData(string db_file_name)

Argument Contents
db_file_name Name of a standard geographic file

Returns

The same array as was passed in to SetDBLinkedData().

Notes

  • The "Update Linked Records" macro can be used to refresh the linked data when the external table is updated ( e.g., RunMacro("Update Linked Records")). The point db must be open in a map or a dataview.

  • SetDBLinkedData() does not check whether the parameters are correct.

Example

LinkedData.TableSpec = {"Customers.xlsx", "Sheet1$"}
LinkedData.TableType = "EXCELX"
LinkedData.LinkedDataFlag = True
LinkedData.IdField = "CustomerID"
GeocodeInfo.Type = ZIP"
if methodIndex != null then
GeocodeInfo.MethodIndex = methodIndex
GeocodeInfo.Fields = {"ZIPCode"}
LinkedData.GeocodeInfo = GeocodeInfo
SetDBLinkedData("customers.dbd", LinkedData)

Error Codes

Error Type Meaning
Error The standard geographic file could not be found

See Also

Function Summary
SetDBLinkedData Sets the information about the original table on which the database (db) is based
Update Linked records Updates the information in a point layer based on the original table on which the database (db) is based