Autor Beitrag
Klaus22
Hält's aus hier
Beiträge: 12



BeitragVerfasst: Do 05.02.04 16:24 
Hallo Community,

ich habe folgendes Problem. Ich habe in meinem Formular ein dbEdit Feld, in welchem jeweils eine eMail-Adresse des aktuellen Datensatzes angezeigt wird. Ein Button soll diese Adresse jetzt auslesen, Outlook öffnen und die aktuelle Adresse in das AN-Feld von Outlook einsetzen. Folgendermaßen funktioniert das mit einer im Code fest angegebenen Adresse.
ausblenden Quelltext
1:
2:
3:
 begin
    ShellExecute(Application.Handle, 'open','mailto:adresse@gmx.de', nil, nil, SW_ShowNormal);
 end;

Weiß jemand wie ich die aktuell im dbedit-Feld stehende Adresse bekomme ?
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Do 05.02.04 16:57 
So z.B.:

ausblenden Delphi-Quelltext
1:
2:
3:
 begin
    ShellExecute(Application.Handle, 'open','mailto:'+DBEdit.Text, nil, nil, SW_ShowNormal);
end;

_________________
If accidentally read, induce vomitting.
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: Do 05.02.04 18:22 
Sorry, wird ein Problem machen, besser ist :wink: :

ausblenden Delphi-Quelltext
1:
2:
3:
begin 
    ShellExecute(Application.Handle, 'open',pchar('mailto:'+Tabelle.FieldByName('Mailadresse').asString), nil, nil, SW_ShowNormal); 
end;