Autor Beitrag
Der-DeeJay
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Mo 16.02.04 19:04 
HI

Hoffe Ihr könnt mir helfen!

Ich möchte gern in Edits einen Array anzeigen:

ausblenden Delphi-Quelltext
1:
2:
3:
Edit1.Text:=Array[1]; 
Edit2.Text:=Array[2]; 
Edit3.Text:=Array[3];


Kann man das nich irgendwie so machen:

ausblenden Delphi-Quelltext
1:
2:
for x:=1 to 10 do 
  Edit[x].Text:=Array[x]



MFG
Der DeeJay


Zuletzt bearbeitet von Der-DeeJay am Mo 16.02.04 19:26, insgesamt 1-mal bearbeitet
mEzZo
Hält's aus hier
Beiträge: 12

WinXP

BeitragVerfasst: Mo 16.02.04 19:07 
Hi,

es ist nicht möglich die editfelder so aufzurufen.
Da musste dir glaubich nen EditFeld-Array baun doer so.
Mehr weiß ich auch net.

mfg Kai
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: Mo 16.02.04 19:10 
So etwas müsste gehen

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
for i:=1 to Anzahledits do
 begin
 with TEdit(FindComponent('Edit' + IntToStr(i))) do
    begin
      text:=array[i];
    end;
end;


vorausgesetzt, die Edits heissen Edit1 bis Editxxx...
Der-DeeJay Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Mo 16.02.04 19:26 
WOW !-!

Das ging ja mal wieder super schnell!!

Ich danke dir tomtom62 genau das hab ich gesucht!

THX!!

MFG Der DeeJay