RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStringT::LoadString Method

Loads a string from the compiled resources of a specified module.

Pascal
function LoadString(hInstance: HINSTANCE; ident: Integer): AnsiStringT&;
C++
__fastcall AnsiStringT& LoadString(HINSTANCE hInstance, int ident);

System::AnsiStringT::LoadString loads a specified string resource. 

ident is the resource identifier of the string. 

hInstance is the instance handle of the module that contains the string resource. 

If the string resource does not exist, System::AnsiStringT::LoadString returns an empty string. 

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

 

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