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

Unlike the variables, the constants are elements in the script that can not be changed. Like the variables, they can contain:

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

Trying to edit the constants will give an error, because the constants' contents can not be edited.

Declaration[]

The constants are declared as it follows:

const name=value;
      name2=value;

For example:

const a=5;
      vector=[1,2,3..500];
      letters=['A'..'Z'];

See also[]