RAD Studio VCL Reference
SysUtils.LoadStr Function

Loads a string resource from the application's executable file.

function LoadStr(Ident: Integer): string;
AnsiString LoadStr(int Ident);

LoadStr loads the string resource given by Ident from the application's executable file or shared library. If the string resource does not exist, LoadStr returns an empty string.  

Moving display strings into string resources makes an application easier to localize without rewriting the program.

Note: :LoadStr is provided primarily for backward compatibility. To isolate string resources in Delphi, use the resourcestring keyword in new applications.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!