Autor Beitrag
CodexX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 118

WinXP
Delphi XE
BeitragVerfasst: Mo 23.05.05 01:48 
wenn ich mehrere edit-felder habe, die alle den gleichen anfangsnamen haben und sich nur durch eine fortlaufende nummer unterscheiden, so müsste es doch irgendwie möglich sein, auf diese in einer schleife zuzugreifen.

also zb:
txtFeld1, txtFeld2, txtFeld3, txtFeld4, txtFeld5

ausblenden Delphi-Quelltext
1:
2:
for n:=1 to 5 do
  'txtFeld'+IntToStr(n) := 'bla';

geht nicht mal ansatzweise.

wie kriegt mans doch hin?
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: Mo 23.05.05 01:54 

_________________
Ciao, Sprint.