RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.LoadStr Function

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

Pascal
function LoadStr(Ident: Integer): string;
C++
AnsiString LoadStr(int Ident);

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!