Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#13

AW: String anhand eines Trennzeichens zerlegen

  Alt 13. Mär 2020, 12:59
Gibt auch noch String.Split:
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
var s: String;
    strParts: TArray<String>;
begin
  s := 'Hallo|Welt';
  strParts := s.Split(['|']);
end;
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat