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...'; |
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.