Pascal command

Solved
La commande en Pascal pour effacer l'écran est :

```pascal
clrscr;
```

8 answers

  • Votes
  • Date
  • Descending date
  1. slut! Do you want to know the command that will allow you to clear the screen "in Pascal":
    IF you are working in text mode use "clrscr", which is a procedure that has no parameters and belongs to the "crt" unit,
    so you must write before the definition of the variables of your program "uses crt";
    take a good look at this example:
    program clear;
    uses crt;
    var x,y:integer;
    begin
    clrscr;
    writeln("Enter two numbers");
    readln(x,y);
    writeln("The product of these two numbers is " x*y);
    readln;
    end.

    and if you are working in graphics mode use "cleardevice"; without forgetting to write beforehand uses graph;

    GOOD LUCK
    end;
    1. Hi,

      it seems to me that it's the style
      clear

      or
      clrsrc


      sorry for the approximation of the answer.

      --
      Don't look for the impossible,
      unless at GMT + 2.
      1. yes it is clrsrc i.e. "clear screen"
      2. clear (clr) screen(scr) : clrscr
    2. hi

      there is borland pascal and turbo pascal available on this site

      courses and exercises on this site

      http://www.bacpascal.fr.tc
      1. Good evening, I am still studying and I wanted to know that since I am on Vista Turbo Pascal is in QWERTY and cannot be displayed in full screen. I was advised to use Dev Pascal, but it is much more complicated and I cannot execute the program (the black screen on TP7). If someone could help me, it would be nice.
        1. use Borland Pascal

          IF YOU WANT COURSES ON PASCAL MY FRIEND, YOU WILL FIND THE BEST COURSES GATHERED ON THIS SITE
          AND YOU WILL ALSO FIND UP-TO-DATE EXERCISES. SOFTWARE LIKE BORLAND PASCAL AND TURBO PASCAL.
          HAVE FUN AND GOOD LUCK WITH YOUR STUDIES. jlassi zied

          http://www.bacpascal.fr.tc/jlassi%20zied/cours/cours%20pascal/
          1. The command that allows you to clear the screen in Pascal is CLRSCR;