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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
for z := 1 to J1 do
begin
if pos(Liste1[z][1], S1) <> 0 then
continue; // <==== le revele est present
if pos(Liste1[z][2], S1) <> 0 then
continue; // <==== le revele est present
if pos(Liste1[z][3], S1) <> 0 then
continue; // <==== le revele est present
inc(R); // <==== combinaison bonne
Move(Liste1[z], Liste1[R], 10);
fin:
end;
J1 := R;
end;
for z := 1 to J1 do
begin
if pos(Liste1[z][1], S1) <> 0 then
goto fin; // <==== le revele est present
if pos(Liste1[z][2], S1) <> 0 then
goto fin; // <==== le revele est present
if pos(Liste1[z][3], S1) <> 0 then
goto fin; // <==== le revele est present
inc(R); // <==== combinaison bonne
Move(Liste1[z], Liste1[R], 10);
fin:
end;
for z := 1 to J1 do
begin
if pos(Liste1[z][1], S1) = 0 then
if pos(Liste1[z][2], S1) = 0 then
if pos(Liste1[z][3], S1) = 0 then
begin
inc(R); // <==== combinaison bonne
Move(Liste1[z], Liste1[R], 10);
end;
end;
for z := 1 to J1 do
begin
if (pos(Liste1[z][1], S1) = 0)
and (pos(Liste1[z][2], S1)) = 0)
and (pos(Liste1[z][3], S1)) = 0 then
begin
inc(R); // <==== combinaison bonne
Move(Liste1[z], Liste1[R], 10);
end;
end; |
Partager