Subject | Re: [IBO] Re: DDL Query for Field Names |
---|---|
Author | Lucas Franzen |
Post date | 2004-04-08T11:13:58Z |
somehow a lot of my mails get lost in space (as well in IBO as in
fbsupport...)
Okay, once again:
Jack,
Jack Cane, PhD schrieb:
procedure GetFieldsForTable ( const aTablename: String;
const sl: TStrings );
begin
myIB_Connection.SchemaCache.GetTableFields ( atableName, sl );
// now the stringList is populted with all the fields for that table
// NOTE! it's qualified with the tablename,
// ie MYTABLE.MYCOLUMN1, MYTABLE.MYCOLUMN2 ...
end;
Luc.
fbsupport...)
Okay, once again:
Jack,
Jack Cane, PhD schrieb:
> Thanks; it works perfectly.Or you can use the IB_Connection SchemaCache properties.
procedure GetFieldsForTable ( const aTablename: String;
const sl: TStrings );
begin
myIB_Connection.SchemaCache.GetTableFields ( atableName, sl );
// now the stringList is populted with all the fields for that table
// NOTE! it's qualified with the tablename,
// ie MYTABLE.MYCOLUMN1, MYTABLE.MYCOLUMN2 ...
end;
Luc.