System.SysUtils.TStringHelper.Format
Delphi
class function Format(const Format: string; const args: array of const): string; overload; static;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Identical to Format function.
Equals is a class function that returns a formatted 0-based string based on the given parameters.
var
MyString1: String;
MyString2: String;
begin
MyString1 := 'This is a %s';
MyString2 := 'string.';
Writeln(String.Format(MyString1, [MyString2]));
end.
Output:
This is a string.