TStrings.Prefix
| TStrings = class (TObject) | Interface de TStrings | Exemples de TStrings |
Qubes 6.0 Préfixe toutes les chaînes
Syntaxe
procedure Prefix(s: String)
s : Chaîne à ajouter en préfixe
Remarques
- s est ajouté devant chacune des chaînes de la TStrings.
- Voir aussi Postfix.
Exemples
var liste := TStrings.Create;
liste.Commatext := 'paul,pierre,jacques';
liste.Prefix('jean-');
InformationDlg(liste.CommaText); // Affiche 'jean-paul,jean-pierre,jean-jacques'
liste.Commatext := 'paul,pierre,jacques';
liste.Prefix('jean-');
InformationDlg(liste.CommaText); // Affiche 'jean-paul,jean-pierre,jean-jacques'