Autor Beitrag
Us0R
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Di 19.04.05 18:57 
Hallo, wie kann ich aus einer .txt datei oder so denn Inhalt in eine ComboBox reinladen, ich glaube das dass mit TStrings gehen wird aber wie hollt mann ein Text aus einer Datei in ein TString?
Ahja noch was es werden mehrere Zeilen in der .txt Datei sein, deshalb auch TString damit es Zeile für Zeile eingelesen wird.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 19.04.05 19:08 
Meinst du sowas:
ausblenden Delphi-Quelltext
1:
ComboBox1.Items.LoadFromFile('DATEI.TXT');					
Us0R Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Di 19.04.05 19:20 
Ja ,das wollte ich. Danke. :D
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 19.04.05 19:31 
Mal so als Vorbeugung falls du auch Speichern willst:
ausblenden Delphi-Quelltext
1:
ComboBox1.Items.SaveToFile('DATEI.TXT');					

;)