Board index » delphi » Reindexing master/detail DBase files in a program
rharman...@aol.com (RHarman313)
Delphi Developer |
Mon, 29 Jun 1998 03:00:00 GMT
Reindexing master/detail DBase files in a program
I'm trying to build a routine that I can use to reindex
master/detail DBF files from a program. The database will be located on a Novell LAN so I'm trying to set the tables' Exclusive property to true. The following routine was adapted from a Borland example. When trying to reindex a detail table I get a 'Table is Busy' exception when trying to set the table active after setting exclusive to true. This happens as a stand alone application, its not running on the Network yet. If I initially set the Detail Table Active property to False before starting the program it will work. Is there something else required to set the Exclusive property true or what is causing the table to indicate it's busy? I also have found that I have to clear the Detail Table's procedure MakeTableExclusive (TableX: TwwTable; DBName: string); begin end; Bob Harman |