Types and Variables

A structure representing a record in VB is actually named record in Pascal:

  TProduct = record
    ProductID : integer;
    Price : currency;

A Pascal enumerated type is not preceded by the keyword enum (required in VB):

type TSuit = (Hearts, Clubs, Diamonds, Spades);  

In order to declare a variable in Pascal, use var Count : integer instead of Dim Count As Integer.

Programming - a skill for life!

Important differences between the code of Pascal and VB console programs