help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

StrLFmt

Format a string with given arguments, but with limited length.

Declaration

Source position: line 0

function StrLFmt(

  Buffer: PCHar;

  Maxlen: Cardinal;

  Fmt: PChar;

  const args: array of Const

):Pchar;

function StrLFmt(

  Buffer: PCHar;

  Maxlen: Cardinal;

  Fmt: PChar;

  const args: array of Const;

  const FormatSettings: TFormatSettings

):Pchar;

Description

StrLFmt will format fmt with Args, as the Format function does, and it will store maximally Maxlen characters of the result in Buffer. The function returns Buffer. Buffer should point to enough space to contain MaxLen characters.

Errors

for a list of errors, see Format.

See also

StrFmt

  

Format a string with given arguments, store the result in a buffer.

FmtStr

  

Format a string with given arguments.

Format

  

Format a string with given arguments.

FormatBuf

  

Format a string with given arguments and store the result in a buffer.

Example

Program Example80;

{ This program demonstrates the StrFmt function }

Uses sysutils;

Var S : AnsiString;

Begin
  SetLEngth(S,80);
  Writeln (StrLFmt (@S[1],80,'For some nice examples of fomatting see %s.',['Format']));
End.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505