Autor Beitrag
xxlolxx
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 48

win xp home
Delphi 7 personal
BeitragVerfasst: Mi 03.01.07 22:53 
hallo hab mal wieder ein problem.

wie bekommt man den text aus einer textdatei in ein editfeld???????????????
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mi 03.01.07 22:54 
Textdatei laden (Code findste über die Suche) und dann die Eigenschaft Text vom Editfeld setzen.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 03.01.07 23:26 
Da hättest Du eigentlich drauf kommen können, du speicherst mit Stringlist also kannst du auch laden.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
 SL:TStringList;
begin
  SL:=TStringList.Create;
  SL.LoadFromFile('DeineDatei.txt');
  Edit1.Text:=SL.Strings[0]; //0 ist die Erste Zeile 1 die Zweite
  SL.free;


Du könntest auch mal sagen was Du vorhast, vieleicht gibts ja noch Alternativen.

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
xxlolxx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 48

win xp home
Delphi 7 personal
BeitragVerfasst: Mi 03.01.07 23:38 
danke

ich brauche das für ein frage und antwort spiel