Autor Beitrag
thomi
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mi 16.11.05 09:15 
Hey!

Kann mir vielleicht grad jemand erklären, wie ich mithilfe eines Buttons
12-Edit-Felder zurück setze ...!?

Ich verzweifel' hier ...

Vielen Dank schonmal!

thomi
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mi 16.11.05 09:21 
ausblenden Delphi-Quelltext
1:
2:
3:
Edit1.Clear;
Edit2.Clear;
etc...
thomi Threadstarter
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mi 16.11.05 09:27 
Titel: DANKE!!
Danke, Danke! :)

War ja eigentlich ganz simpel... :-/
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 16.11.05 09:44 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
  i: Integer;
begin
  for i := 0 to Self.ComponentCount - 1 do
    if Self.Components[i] is TEdit then
      TEdit(Self.Components[i]).Clear;

So setzt du alle Edits auf deinem Formular zurück...