System.SysUtils.LoadStr

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function LoadStr(Ident: NativeUInt): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall LoadStr(NativeUInt Ident);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

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

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 Object Pascal, use the 'resourcestring' keyword in new applications.