Autor Beitrag
ploRa
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59

Win XP
Delphi 6
BeitragVerfasst: Mi 09.03.05 17:22 
Hiho
Ich habe 2 Edit Felder wo der Benutzer zB. im 1 Editfeld 'Wasser' und im 2 Editfeld 'fall' eingeben kann.
Dann soll auf einem Button gedrückt werden.
Diese 2 Wortsilben sollen wie folgt in eine Listbox eingetragen werden.

Wasser-fall

Es ist wichtig, dass sie so angeordnet sind in einer Zeile getrennt mit einem '-' !

Bissher habe ich es nur so. Aber da schreibt er es untereinander und ohne '-'

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
x:=Edit1.Text;
y:=Edit2.Text;

form8.listbox1.items.add(x);
form8.listbox1.items.add(y);


thx


Moderiert von user profile iconChristian S.: Topic aus Multimedia / Spiele / Grafik verschoben am Mi 09.03.2005 um 16:27
Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.
1211chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30

WIN XP Pro, Win 7-64bit Home
D4 Prof
BeitragVerfasst: Mi 09.03.05 17:30 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var a: string;
begin

a:=edit1.text+'-'+edit2.text;

end;


a eintragen ?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
x:=Edit1.Text+'-'+edit2.text;  

 
form8.listbox1.items.add(x);


Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
Moderiert von user profile iconraziel: Beiträge zusammengefasst.

_________________
Theorie: Alles läuft ... Praxis: Nix funzt ... Ich bin eben ein Mann der Praxis
ploRa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59

Win XP
Delphi 6
BeitragVerfasst: Mi 09.03.05 17:35 
ja danke es klappt !
auf sowas muss man erstmal kommen :)
1211chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30

WIN XP Pro, Win 7-64bit Home
D4 Prof
BeitragVerfasst: Mi 09.03.05 18:07 
Bitte schön :D

Moderiert von user profile iconChristian S.: 19 Smilies entfernt

_________________
Theorie: Alles läuft ... Praxis: Nix funzt ... Ich bin eben ein Mann der Praxis