N
nataly_ukr
Выдает File busy на ******* Никак не пойму почему занят
Form15.Table1.TableName:='otcet5.dbf';
Form15.Table1.Active:=False;
if FileExists('nfio.mdx') Then
begin
ShowMessage('g1');
DeleteFile('nfio.mdx');
end
else
begin
DeleteFile('nfio.mdx');
ShowMessage('ggg');
end;
AssignFile(F,'otcet5.dbf');
Reset(F);
Seek(F, 28);
value:=0;
Write(F, value);
CloseFile(F);
Form15.Table1.AddIndex('nfio.mdx','nfio',[]); *******
Form15.Table1.IndexName:='nfio.mdx';
Form15.Table1.Active:=True;
end;
Form15.Table1.TableName:='otcet5.dbf';
Form15.Table1.Active:=False;
if FileExists('nfio.mdx') Then
begin
ShowMessage('g1');
DeleteFile('nfio.mdx');
end
else
begin
DeleteFile('nfio.mdx');
ShowMessage('ggg');
end;
AssignFile(F,'otcet5.dbf');
Reset(F);
Seek(F, 28);
value:=0;
Write(F, value);
CloseFile(F);
Form15.Table1.AddIndex('nfio.mdx','nfio',[]); *******
Form15.Table1.IndexName:='nfio.mdx';
Form15.Table1.Active:=True;
end;