RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.FmtLoadStr Function

Returns formatted output using a resourced format string.

Pascal
function FmtLoadStr(Ident: Integer; const Args: array of const): string;
C++
AnsiString FmtLoadStr(int Ident, const array of const Args);

SysUtils

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 replace 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!