17/09/2004

DbExpress Duvida

Como faço para pegar a propriedade Fields.Origin da Query pois quando pego ela me traz em branco.


Mfrinfo

Respostas

17/09/2004

Rômulo Barros

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

property Origin: String;

Description

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. 



Responder Citar