Autor Beitrag
Starfighter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Do 17.04.03 22:46 
Hallo..

IUch will mit shellexecute eine Website öffen nur wie sag ich ihn es soll es aus den text feld nehmen?

starfighter

ausblenden Quelltext
1:
2:
ShellExecute(Application.Handle, 'open', PChar('edit1.text'), nil,
nil, sw_ShowNormal);
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Do 17.04.03 22:49 
Starfighter hat folgendes geschrieben:
Hallo..

IUch will mit shellexecute eine Website öffen nur wie sag ich ihn es soll es aus den text feld nehmen?

starfighter

ausblenden Quelltext
1:
2:
ShellExecute(Application.Handle, 'open', PChar('edit1.text'), nil,
nil, sw_ShowNormal);


So sollte es gehen->
ausblenden Quelltext
1:
2:
ShellExecute(Application.Handle, 'open', PChar(edit1.text), nil,
nil, sw_ShowNormal);


der Haken is das du edit1.text übergibt und nicht was drin steht :)

MfG BungeeBug


Zuletzt bearbeitet von BungeeBug am Do 17.04.03 22:50, insgesamt 1-mal bearbeitet
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 17.04.03 22:49 
Das hatten wir schon so oft im Forum, Du hast ja sogar das Stichwort für die Suche gegeben. Aber da ich ein netter Mensch bin :wink:

ausblenden Quelltext
1:
ShellExecute(Handle, 'open', PChar(Edit1.Text), nil, nil, SW_SHOW);					


Reicht das?
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 17.04.03 22:50 
Huch, den Code unten hatte ich gar net gesehen, erst als Bungee das zitiert hat, aber die Lösung hat ja glaub ich trotzdem gestimmt..... :wink:
Starfighter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Do 17.04.03 22:54 
hammmer, danke hab vor 2min gepostet und schon 3 Antworten danke!!
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 17.04.03 22:58 
Nana, also bis zu unseren Antwortn warns immerhin schon 3 Minuten, und bis zu Deiner Antwort so 8, also mal net übertreiben.

Aber man tut eben, was man kann :wink: