Repetition

The repeat loop in Pascal is the equivalent of the do loop in VB and is coded as in the following example.

repeat
  inc(i);
  readln(Name[i]);
until Name[i] = 'End';
The for loop in Pascal does not have a step clause. Instead of the VB code
For EvenNum = 2 To 10 Step 2 
  Console.WriteLine(EvenNum)
Next EvenNum
use the Pascal code
for Count := 1 to 5 do
  begin
    EvenNum := Count * 2;
    writeln(EvenNum);
  end;  

In order to count down, say from 4 to 1, instead of  the VB code    
For Count = 4 To 1 Step -1
use the Pascal code
for Count := 4 downto 1 do.

Pascal does not have the keyword Loop. An example of a Pascal while loop is:
while not eof(TFile) do
  begin
    read(TFile, CurrentString);
    writeln(CurrentString);
  end;  
Programming - a skill for life!

Important differences between the code of Pascal and VB console programs