Borland Pascal Wiki
Borland Pascal Wiki
This article is part of the Getting Started series

The variables are elements used in the script that can contain:

  • numbers
  • characters, letters
  • character strings
  • number sets
  • character sets

Declaration[]

Variables are declared in a special section of the header of the script. The variables are defined as follows:

var variable_name1, variable_name2, variable_name3,...,variable_nameN:variable_type;

For example:

var a,b,c,sum:integer;
    s:string;
    let:char;