1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| procedure Tmaj.btSUPPClick(Sender: TObject);
var
lig:integer;
tir1:string;
lotopro: file of typeloto;
begin
tir:= ExtractFilePath(Application.ExeName) + 'LOTO.del';
AssignFile(loto,tir);
Reset(loto);
tir1:= ExtractFilePath(Application.ExeName) + 'prov.del';
AssignFile(lotopro,tir1);
ReWrite(lotopro);
lig:=StrToInt(TXTlig.text);
While not EOF(loto) do
begin
read(loto,enregloto);
if enregloto.tirage<>lig then write(lotopro,enregloto);
end;
DeleteFile(tir);
RenameFile(tir1, tir);
totaux;
affiche;
end;//procédure |
Partager