Autor Beitrag
NewTimeLive
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27

WinXP, Win2000
Delphi 7, Delphi 2005
BeitragVerfasst: Mo 14.03.05 16:07 
Also ich weiss nicht ob ich mich einfach nur dumm anstelle oder einfach zu blöd bin ^^

Also ich habe ein Programm geschrieben in dem ich per Klick auf Vorschau fogendes ausgeben will

Also jedes Formular feld in einer bestimmten Zeile ausgeben

Memo:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
Zeile 0: Inhalt von Edit1.Text
Zeile 1: Inhalt von Edit2.Text
Zeile 2: Inhalt von Edit3.Text
.
.
.
usw...


Bitte um Antwort... MfG

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: Mo 14.03.05 16:12 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
begin
Listbox1.Items.Add(Edit1.Text);
Listbox1.Items.Add(Edit2.Text);
Listbox1.Items.Add(Edit3.Text);
.
.
.
end;


Zuletzt bearbeitet von PLuS am Mo 14.03.05 16:23, insgesamt 2-mal bearbeitet
NewTimeLive Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27

WinXP, Win2000
Delphi 7, Delphi 2005
BeitragVerfasst: Mo 14.03.05 16:16 
Neee, das war nicht das was ich gesucht hatte...

Ich suche ne lösung mit der ich sagen kann

Memo1.lines.Add(zeile) := Edit.Text oder so ich weiss halt nicht wie das gehn soll

"Ich suche keine Schleife!"

//EDIT:

Ich will das immer in eine bestimmte Zeile schreiben nicht untereinander sondern ich will sagen können, in zeile 15 kommt IMMER Edit4.Text


Zuletzt bearbeitet von NewTimeLive am Mo 14.03.05 16:20, insgesamt 1-mal bearbeitet
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: Mo 14.03.05 16:19 
Sorry, das versteh ich nich so ganz! Ich hab dir die Schleife auch noch mal weggemacht! :D
Was genau willst du machen?
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: Mo 14.03.05 16:25 
Also:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
begin
Memo1.Lines[15]:=Edit1.Text;
Memo1.Lines[16]:=Edit2.Text;
end;


Musst du halt nur vorher sicherstellen, dass genug Zeilen vorhanden sind, oder du machst vorher ne Abfrage!
OneOfTen
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 14.03.05 16:29 
ausblenden Delphi-Quelltext
1:
Memo1.Lines.Add(Edit1.Text);					

mit der richtigen anordnung ist sowas auch möglich
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: Mo 14.03.05 16:31 
Das will er ja nich! :lol:
Er will ja genau sagen können, in welcher Zeile sein Text steht! Warum auch immer?!?!? :idea:
wdbee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 628
Erhaltene Danke: 1



BeitragVerfasst: Mo 14.03.05 16:35 
Er will wohl ein Formular ausgeben. Für Delphi-Programmierer: Ein Formular ist nicht unbedingt ein Delphi-Formular! Auch das Finanzamt hat Formulare :)
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: Mo 14.03.05 16:37 
Von der Seite haben wir das wohl noch nicht gesehen! :lol:
Tja, so is das, in der beschränkten Delphi-Welt! :D
OneOfTen
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 14.03.05 16:39 
Ja, geht doch so, von mir aus mit ner Prozedur:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure DatenAktualisieren;
begin
  memo1.lines.beginupdate;
  memo1.clear;
  memo1.lines.add(edit1.text);
  memo1.lines.add('-----');
  memo1.lines.add(edit77.text);
  memo1.lines.add(edit3.text);
  // usw.. kenne seine reihemfolge nicht
  memo1.lines.endupdate;
end;


Dann muss er nur, wenn etwas geändert wurde die Prozedur aufrufen.
Jetzt verstanden, was ich meine, PLuS? :wink:
PLuS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Win XP, Suse Linux 9.0
D5 Standard, D2005 Personal; Perl; PureBasic
BeitragVerfasst: Mo 14.03.05 16:41 
So gehts auch! :D