...die Tabellen Version herausfinden?

Autor: Simon Grossenbacher
Homepage: http://www.swissdelphicenter.ch

Kategorie: Datenbanken

function GetTableVersion(Table: TTable): Longint;
var
  
hCursor: hDBICur;
  DT:      TBLFullDesc;
begin
  
Check(DbiOpenTableList(Table.DBHandle, True, False,
    PChar(Table.TableName), hCursor));
  Check(DbiGetNextRecord(hCursor, dbiNOLOCK, @DT, nil));
  Result := DT.tblExt.iRestrVersion;
  Check(DbiCloseCursor(hCursor));
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base