![]() |
Tstrings ...
Hi, folgendes Problem
Code:
Ich bekomme als ausgabe jediglich "text" bei sl[0] .. wenn ich jedoch alles zusammenschreibe, erfolgt die ausgabe wie gewünscht "text hund katzen"
sl:=TstringList.Create;
s:='text hund katzen;titel;5'; try sl.Delimiter:=';'; sl.DelimitedText:=s; showMessagebox(sl[0]); showMessagebox(sl[1]); .... Wie kann ich des problem nun umgehen , ich hab nähmlich strings in folgender art zu zerlegen
Code:
:pale:
string_variable:='der string nummer 1 ; der string nummer 2 ; der string nummer 3'
|
Re: Tstrings ...
Moin Nikon,
Du musst den String, der Leerzeichen enthält in doppelte Anführungsstriche setzen, weil ein Leerzeichen auch als Trenner angesehen wird.
Code:
s := '[color=red]"[/color]text hund katzen[color=red]"[/color];titel;5';
|
Re: Tstrings ...
dank dir :-D
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:11 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz