Hello,
is it possible to retrieve the caption of a column?
i want to store some data in a stringgrid; the first row (a fixed one) should hold the data eg.:
select a.article, a.id, a.locked from xyz a
----------------------------
| article | id | locked |
---------------------------
| data... | ... | ... |
| | | |
and so on...
is it possible to do that? i didn't find any property/method to get the information on the current query.
Best regards,
Oliver
Requesting the caption of a column
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
Hello,
there is no .Fieldname or .DisplayName
I'm using TSmartQuery to retrieve the data.
gives me only the query-result, not the caption of the column.
i'm using borland c++ 6
Best regards,
Oliver[/code]
there is no .Fieldname or .DisplayName
I'm using TSmartQuery to retrieve the data.
Code: Select all
tQryExpert->Fields->FieldByNumber(j)->AsString;
i'm using borland c++ 6
Best regards,
Oliver[/code]
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
To get field name try to use the following code:
Code: Select all
IBCQuery1->Fields->FieldByNumber(j)->FieldName