Subject | Fill titles in a query in execute time |
---|---|
Author | pepmallorca |
Post date | 2002-04-05T19:29:53Z |
Hello:
In some cases, I have an IB_Query_Tmp that I use to create a query,
and then show in a IB_GRID:
I write lines like:
sql.clear;
sql.add('select a,b,c from table where c=:pC');
prepare;
parambyname('pC').AsString:='xxxx';
first;
But, how can I link a title, to each of the columns (a,b,c), in
execution time, before show the information in the grid?
Something like...
FieldByName('a').Title:='First name';
FieldByName('b').Title:='Adress';
And information about alignment?
....
Thanks,
In some cases, I have an IB_Query_Tmp that I use to create a query,
and then show in a IB_GRID:
I write lines like:
sql.clear;
sql.add('select a,b,c from table where c=:pC');
prepare;
parambyname('pC').AsString:='xxxx';
first;
But, how can I link a title, to each of the columns (a,b,c), in
execution time, before show the information in the grid?
Something like...
FieldByName('a').Title:='First name';
FieldByName('b').Title:='Adress';
And information about alignment?
....
Thanks,