Index dbase III with memo
Hello,
I get the following error when creating a dBase III+ file
(BDE configuration, drivers dBase level 3) with a memo field.
I have a project where a new Delphi 4.0 application has to be
added to an existing dBase III+/Clipper Summer 97 application.
procedure TForm1.btTestClick(Sender: TObject);
begin
with TTable.Create(Self) do
begin
DatabaseName := '';
TableName := 'Register.dbf';
TableType := ttDBase;
with FieldDefs do
begin
Add('CLIENT_NO',ftString,7,false);
Add('DATE',ftDate,0,false);
Add('PAIDFEES',ftFloat,0,false);
Add('INACTIVE',ftBoolean,0,false);
Add('APPOINTMENTS',ftInteger,0,false);
{If the next line is not added to the program, no error occurs}
Add('notes',ftMemo,0,false);
end;
CreateTable;
{Delphi returns the following error when adding an index if dBase driver
level is 3
and a ftMemo field is defined within FieldDefs:
Project Test.exe raised exception class EDBEngineError with message
"Table level changed". Process stopped. Use Step or Run to continue }
with IndexDefs do
begin
clear;
AddIndex('Register','CLIENT_NO',[]);
end;
end;
end;
Who can help me before this project is turning into a disaster.
Thanks,
Hubert