![]() |
TStrings
Hallo!
Kann man TStrings (Edit (sorry, hab das s vergessen)) im Quelltext editor erstellen? zb (also so gehts nicht das weiß ich):
Delphi-Quellcode:
'String1', 'String2'
|
Re: TStrings
Delphi-Quellcode:
jetzt hab ich nen string im editor gemacht :?
var
s: string; begin s := 'hallo'; end; :angle:, sCrAPt |
Re: TStrings
Hi,
verwende TStringList (ist praktisch das gleiche, nur funktionstüchtiger) und es geht wie folgt:
Delphi-Quellcode:
Beantwortet das deine Frage?
var
slStringList: TStringList; // ... slStringList := TStringList.Create; try // arbeite mit der StringListe. // Beispiel: slStringList.Add('blubbel'); slStringList.Add('blubb'); slStringList.SaveToFile('C:\Somewhere\it\belongs.to'); finally slStringList.Free; end; // ... Chris |
Re: TStrings
Schau dir mal die eigenschaften TStrings.Text, oder TStrings.CommaText an - damit dürfte es gehn.
|
Re: TStrings
ok, danke hat geklappt
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:04 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