Delphi .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
resourcestring replaces LoadStr()
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Delphi 3 introduced the possiblity to easily place constant strings as
a resource with the new keyword 'resourcestring'.
If you want to write code that compiles both with Delphi 2 and 3 because you
are publishing a component, take a look at this sample code:
 | |  | |
raise SomeException.Create(LoadStr(SInsertLineError));
raise SomeException.Create(
{$IFNDEF VER100}LoadStr{$ENDIF}
(SInsertLineError));
Stefan Hoffmeister | |  | |  |
Comments:
|