True DataControl 8.0 Reference > Field Object > Field Object Properties > LinkedControl Property |
Specifies the linked control to whose field the field is linked.
Field.LinkedControl = string
Read/Write at design time and at run time. Property applies to Field object.
This property works together with the LinkedField property. It is only relevant for linked fields (FieldKind = 2 – Linked).
It specifies the name of a TData control that is linked to another TData control via a common linked field.
Example: Suppose the TDataCustomers control is linked to the TDataOrders control. The TDataOrders control has a field CustomerName, which represents the TDataCustomers.CustomerName field. Then TDataOrders.CustomerName is a linked field, and it is linked to TDataCustomers.CustomerName. This is specified by the LinkedControl and LinkedField properties in the following way:
TDataOrders.Fields(“CustomerName”).FieldKind = tdbLinkedField
TDataOrders.Fields(“CustomerName”).LinkedControl = “TDataCustomers”
TDataOrders.Fields(“CustomerName”).LinkedField = “CustomerName”
For more information, see One-to-One Links.