|
|
От: |
Bolgaroff
|
|
| Дата: | 28.04.03 22:31 | ||
| Оценка: | 21 (1) | ||
Resource strings are stored as resources and linked into the executable or library so that they can be modified without recompiling the program. For more information, see Internationalization and localization and the topics that follow it.
Resource strings are declared like other true constants, except that the word const is replaced by resourcestring. The expression to the right of the = symbol must be a constant expression and must return a string value. For example,
resourcestring CreateError = 'Cannot create file %s'; { for explanations of format specifiers, } OpenError = 'Cannot open file %s'; { see 'Format strings' in the online Help } LineTooLong = 'Line too long'; ProductName = 'Borland Rocks'; SomeResourceString = SomeTrueConstant;