[prev] [prev-tail] [tail] [up]

### 2.3 Resource strings

A special kind of constant declaration part is the Resourestring part. This part is like a Const section, but it only allows to declare constant of type string. This part is only available in the Delphi or objfpc mode.

The following is an example of a resourcestring definition:

     Resourcestring

       FileMenu = '&File...';
       EditMenu = '&Edit...';

All string constants defined in the resourcestring section are stored in special tables, allowing to manipulate the values of the strings at runtime with some special mechanisms.

Semantically, the strings are like constants; Values can not be assigned to them, except through the special mechanisms in the objpas unit. However, they can be used in assignments or expressions as normal constants. The main use of the resourcestring section is to provide an easy means of internationalization.

More on the subject of resourcestrings can be found in the Programmers guide, and in the chapter on the objpas later in this manual.

[prev] [prev-tail] [front] [up]