Re: Delphi7 / ADO - 'Origin' property of TQuery blank
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Fri, 15 Sep 2006 21:30:14 -0500
Tfields have an Organ property but I don't know of one for datasets.
The tfield.Orgin property of a query should reflect the base table where the
field came from. Why would you wan't to modify that?
With TADOQuery, the 'Origin' property for all fields are blank at design
time - this property NEVER reflects where the field originates. I've just
tried this again to make sure - dropped a new TADOQuery on a form, setup
the connection and a simple SQL query, double click on the query and add
all the fields -> none of them have the 'Origin' set. I always assumed
this was 'normal' behaviour ... uh ... isn't it?
Your right about the blank in the field Origin property. You had me confused
when you referred to Origin as a property of the tadoquery.
Try this code to get the value for the base table of a field
ADODataSet1.Recordset.Fields[1].Properties['basetablename'].Value;
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- Re: Delphi7 / ADO - 'Origin' property of TQuery blank
- From: Brian Bushay TeamB
- Re: Delphi7 / ADO - 'Origin' property of TQuery blank
- Prev by Date: Windows Service & ADO problem
- Next by Date: Re: How to create/copy an access table programmatically D6
- Previous by thread: Re: Delphi7 / ADO - 'Origin' property of TQuery blank
- Next by thread: How to create/copy an access table programmatically D6
- Index(es):
Relevant Pages
|