Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Format(const Format: Substring; const Args: array of const): Substring; overload; | The format text with Args written into it, as Substring.Format. |
| 2 | function Format(const Format: Substring; const Args: array of const; const AFormatSettings: TFormatSettings): Substring; overload; |
Overload 1: function Format(const Format: Substring; const Args: array of const): Substring; overload;
The format text with Args written into it, as Substring.Format.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Format | Substring | |
| 2 | Args | array of const |
Returns: Substring
Remarks:
Called for a Substring format text only.
Examples
A Substring format text.
uses Substr;
procedure Example;
begin
Assert(Format(Substring('%d-%d'), [1, 2]) = '1-2');
end;
Overload 2: function Format(const Format: Substring; const Args: array of const; const AFormatSettings: TFormatSettings): Substring; overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Format | Substring | |
| 2 | Args | array of const | |
| 3 | AFormatSettings | TFormatSettings |
Returns: Substring