Hi,
I have a program that is working very well, I have only one problem.
I am working with DBASE VII tables ( I know, is old and there are more modern databases but I am confortable with it because I was programming in Delphi6 long time ago) and the table is open Shared.(So we can use the program with 2 or more users). I have a menu item to clean up the database. Regenerating indexes is no problem but when I try to pack the table with ".packtable" I have a problem. To pack the table I have to set the exclusive propertie, If a set:
[color=red] hoofdvenster.Dbf1.Exclusive:=true;
hoofdvenster.Dbf1.PackTable; [/color]
I got the message : "Exclusive access is required for this operation"
If I set:
[color=red]hoofdvenster.Dbf1.close;
hoofdvenster.Dbf1.Exclusive:=true;
hoofdvenster.Dbf1.open:=true ;
hoofdvenster.Dbf1.PackTable; [/color]
I got the message : "unable to open file "C:\x.dbf"
??????