System.SysUtils.TStringHelper.Format

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

class function Format(const Format: string; const args: array of const): string; overload; static;

Propriétés

Type Visibilité  Source Unité  Parent
function public System.SysUtils.pas System.SysUtils TStringHelper

Description

Identique à la fonction Format.

Equals est une fonction de classe qui renvoie une chaîne de base zéro formatée en fonction des paramètres donnés.

 var
   MyString1: String;
   MyString2: String;
 
 begin
   MyString1 := 'This is a %s';
   MyString2 := 'string.';
   Writeln(String.Format(MyString1, [MyString2]));
 end.

Sortie :

 This is a string.

Voir aussi