List Info

Thread: Compiled string values




Compiled string values
user name
2006-11-19 19:36:14

Perhaps "resourcestring" will help?

I don't remember what version of Delphi they first appeared, but sounds like
it would suite your needs.

From the Delphi 2006 Help:

Resource strings are stored as resources and linked into the executable or
library so that they can be modified without recompiling the program.

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';
OpenError = 'Cannot open file %s';
LineTooLong = 'Line too long';
ProductName = 'Borland Rocks';
SomeResourceString = SomeTrueConstant;

David Cornelius
Cornelius Concepts, Inc.
http://corneliusconcepts.com
Software Development, Databases, Websites


________________________________

From: Emmanuel Lamy [mailto: lamye%40bellsouth.net">lamyebellsouth.net]
Sent: Sunday, November 19, 2006 9:45 AM
To: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com
Subject: [delphi-en] Compiled string values

Hi everybody,

Anyone out there knows about a TStrings component I can use to store
updated string values in the compiled exe file, as opposed to saving
the strings in an external file? Any techniques, or workaround will be
appreciated. TIA.

Emmanuel

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )