Re: Field captions from MS Access
- From: "Peter Laman" <peter@xxxxxxxx>
- Date: Fri, 17 Feb 2006 12:33:58 +0100
I know that one. Unfortunately it returns the description and not the
Caption.
Peter
"Brian Bushay TeamB" <BBushay@xxxxxxxxx> wrote in message
news:b9iav11vvb6d16p891j380dmlsuspa0g98@xxxxxxxxxx
the
MS Access offers the possibility to specify a caption for each field in
Isfield definition. I'm writing a Delphi program that accesses an MS Access
database through ADO. I'd like to assing the captions as definied in the
database to the DisplayLabel property of the TField components in Delphi.
codethere a way to do it? I Already tried Fields.Properties (from ADO) andIf you import the ADOX type library you can get at the description with
OpenSchema, but that doesn't give me the information. Any clues?
like this
Use ADOX:
var
Column: _Column;
fCatalog : Catalog;
begin
fCatalog := CoCatalog.Create;
fCatalog._Set_ActiveConnection(ADOConnection.ConnectionString);
Column := fCatalog.Tables['tablename'].Columns['columnname'];
strColProp := Column.Properties['Description'].Value;
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- Field captions from MS Access
- From: Peter Laman
- Re: Field captions from MS Access
- From: Brian Bushay TeamB
- Field captions from MS Access
- Prev by Date: Re: Estimate space freed up by compacting MS Access
- Next by Date: Re: TADOTable problem
- Previous by thread: Re: Field captions from MS Access
- Next by thread: ADO with paradox
- Index(es):
Relevant Pages
|