Data.DB.TField.Origin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Origin: string read FOrigin write FOrigin;

C++

__property System::UnicodeString Origin = {read=FOrigin, write=FOrigin};

Properties

Type Visibility Source Unit Parent
property published
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

Indicates the name of the field in its original database table.

Origin is only assigned at design time by the Fields editor, and only when the field component is used by a TQuery object. The Origin property distinguishes the name of the field as it appears in its dataset from the name of the field in the base table on which it is based. For example, in a query that uses the following SQL statement, the value of Origin is CUSTOMER.CUSTNO.

SELECT CUSTNO AS ID FROM CUSTOMER

In this case, the FieldName property is ID.

See Also