Jag provar, så ser du min engelska.
I have some simple questions.
Occasionally happens it that one must use "Table Repair Utility" in Corel Paradox, what is it that happens with the table, but it important is what does man in order to prevent that this happens. I have heard that one shall cross in the box that is called "Pack Table" in "Restructure Paradox 7 Table". But that go in in all tables some time then and assumes that man have Database Desktop installed. After a hint wrote I the following code:
Kodefunction dgPackParadoxTable(Tbl: TTable; Db: TDatabase): DBIResult;
var
TblDesc: CRTblDesc;
begin
Result := DBIERR_NA;
FillChar(TblDesc, SizeOf(CRTblDesc), 0);
StrPCopy(TblDesc.szTblName, Tbl.TableName);
TblDesc.bPack := True;
Result := DbiDoRestructure(Db.Handle, 1, @TblDesc, nil, nil, nil, False);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
Tbl : TTable;
Db : TDatabase;
begin
Tbl := Table1;
db := Krono;
dgPackParadoxTable(Tbl, Db);
end;
But I finds not that there works, it comes none Error message but the table becomes not less.
Is I entirely wrong on it or is it something simple wrong I have done.
That I writes to Yours depends on that in Sweden not exists as many places that treats Delphi and because trying I with Yours in Denmark that I know is very more for just Delphi than The swedes.