inc(X); With GraphXY1 do begin if (X) = EchX*NbXDiv then // à droite begin Reset(0);Reset(1); Reset(2); Reset(3); //Effacement X:=0; // Retour à gauche end; if Input(0) then AddPoint(0,X,100) else AddPoint(0,X,200); if Input(1) then AddPoint(1,X,300) else AddPoint(1,X,400); ....... end;