You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
procedure TForm1.Button0Click(Sender: TObject); var i: integer; s: TStringList; begin try s:= TStringList.Create; s.LoadFromFile('H:\Delphi\adressbuch\adressen\angeldust.txt'); for i:=0 to 5 do (FindComponent('Edit' + IntToStr(i)) as TEdit).Text := s[i]; finally s.Free; end; end; |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
procedure TForm1.Button0Click(Sender: TObject); var i: integer; s: TStringList; begin try s:= TStringList.Create; s.LoadFromFile('H:\Delphi\adressbuch\adressen\TEST.txt'); for i:=0 to 5 do (FindComponent('Edit' + IntToStr(i)) as TEdit).Text := s[i]; finally s.Free; end; end; |
Quoted from "Clark"
hmmm, den Dateinamen als Paramter an die Ladefunktion übergeben?... ::
:
:
:
:
![]()
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
procedure TForm1.Button1Click(Sender: TObject); var i: integer; s: TStringList; begin try s:= TStringList.Create; s.LoadFromFile(edit6.text+'\'+Button1.caption+'.txt'); for i:=0 to 5 do (FindComponent('Edit' + IntToStr(i)) as TEdit).Text := s[i]; finally s.Free; end; end; |
Ithen
Full Member
![]() |
Source code |
1 |
s.LoadFromFile('H:\Delphi\adressbuch\adressen\test.txt'); |
![]() |
Source code |
1 2 3 4 5 6 7 |
begin try hier steht eine anweisung finally hier ebenso end; end; |
-