Equivalent of BDE TTable IndexFieldCount property?
Equivalent of BDE TTable IndexFieldCount property?
For TUniTable (Interbase provider), what is the equivalent property for BDE TTable IndexFieldCount?
Re: Equivalent of BDE TTable IndexFieldCount property?
Hello,
Our products have no property similar to IndexFieldCount in BDE. To retrieve the information about the number of index fields in a table and the information about the index, you can use TUniMetaData, for example:
Our products have no property similar to IndexFieldCount in BDE. To retrieve the information about the number of index fields in a table and the information about the index, you can use TUniMetaData, for example:
Code: Select all
var
UniMetaData: TUniMetaData;
begin
UniMetaData := TUniMetaData.Create(nil);
UniMetaData.Connection := UniConnection1;
UniMetaData.MetaDataKind := 'IndexColumns';
UniMetaData.Restrictions.Add('TABLE_NAME=ALEXP_ID_ID');
UniMetaData.Open;
ShowMessage(IntToStr(UniMetaData.RecordCount));
end;