Autor Beitrag
Peteroramer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29

Windows XP
Delphi 7
BeitragVerfasst: Mi 29.03.06 14:34 
Ich möchte eine Datei öffnen die heißt : C\dfhgldfhg\shflsjdfh\khj.mp3
Wie das so normal geht weiß ich aber...

Jetzt möchte ich den Teil C\dfhgldfhg\shflsjdfh aus Edit1.text ablesen und den Teil \khj.mp3 aus einem anderem Teil ablesen. Im Endefekt soll in einer dritten Variabel C\dfhgldfhg\shflsjdfh\khj.mp3 dann wieder auftauchen.

a:=edit1.Text;
b:=edit2.text;
c:=(edit1.text,['\'],edit2.text,['.mp3']);

So habe ich es mir überlegt aber das klappt nicht


Moderiert von user profile iconjasocul: Topic aus Delphi Tutorials verschoben am Mi 29.03.2006 um 15:36
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 29.03.06 14:36 
c := a + b; ganz einfach
Peteroramer Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29

Windows XP
Delphi 7
BeitragVerfasst: Mi 29.03.06 18:30 
Ja ist ja schön und gut aber a:=C\dfhgldfhg\shflsjdfh und b:=khj somit sieht das ja so aus:

c:=C\dfhgldfhg\shflsjdfhkhj

und so soll es aussehen

c:=C\dfhgldfhg\shflsjdfh\khj.mp3
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Mi 29.03.06 18:32 
c := edit1.text + '\' + edit2.text + '.mp3'; ;)

MfG
freak

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen
Waldteufel
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 29.03.06 18:33 
Hi Peteroramer. :wave:

Dann schreibst du eben
ausblenden Delphi-Quelltext
1:
2:
3:
a := edit1.Text;
b := edit2.Text;
c := a + '\' + b + '.mp3';


;-)