Problem after upgrading to IbDac v2

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
xstef
Posts: 22
Joined: Sat 09 Sep 2006 20:44

Problem after upgrading to IbDac v2

Post by xstef » Wed 12 Mar 2008 09:50

Hi,
after upgrating to v2 i noticed that property GetFieldDesc().TableName does not exit. I am using this property to get the table name from a TIBCQuery based on the KeyFields property. This functionallity is important to my framework. Is there another way to get the table name from a TIBCQuery ? I cannot use UpdatingTable property as it is designed for a different purpose.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 14 Mar 2008 15:48

You can use TableInfo.TableName for IBDAC 2. For example:

Code: Select all

var
  FieldDesc: TCRFieldDesc;
begin
  FieldDesc := TCRFieldDesc(IBCQuery1.GetFieldDesc(1));
  if FieldDesc.TableInfo  nil then
    TableName := FieldDesc.TableInfo.TableName;
end;
TableInfo = nil for fields that don't have corresponding table. TCRFieldDesc type is declared in CRAccess unit.

Post Reply