From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function FmtLoadStr(Ident: NativeUInt; const Args: array of const): string;


extern DELPHI_PACKAGE System::UnicodeString __fastcall FmtLoadStr(NativeUInt Ident, System::TVarRec const *Args, const int Args_High);


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


Returns formatted output using a resourced format string.

FmtLoadStr loads a string from a program's resource string table and uses that string, plus an array of arguments, as a parameter to Format.

Ident is the string resource ID of the desired format string.

Args is an array of arguments that replaces the format specifiers in the string Ident designates.

Note: Args_Size is the index of the last element in the Args array (one less than the number of arguments).

FmtLoadStr returns the resourced string with the arguments applied. This is the same value that would result from calling Format, using the resourced string and the specified arguments.

See Also