RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.Origin Property

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

Pascal
property Origin: string;
C++
__property AnsiString Origin;

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.

Note: Origin is not available on Linux. The Origin property is only implemented for BDE-enabled datasets, which appear only in the Windows product.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!