Page 1 of 1

Problem after upgrading to IbDac v2

Posted: Wed 12 Mar 2008 09:50
by xstef
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.

Posted: Fri 14 Mar 2008 15:48
by Plash
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.