Autor Beitrag
Delphi2009lover
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176



BeitragVerfasst: Mo 30.11.09 22:53 
Hi,

ich schreibe grad einen Downloader. Er läd den Quelltext einer Webseite herunter und speichert ihn in einem String. Aber wenn man jetzt statt einen Link z.B. einfach "Hallo" eingibt kommt diese Meldung. Gibt es eine Möglichkeit diese Meldung abzufangen und eine Eigene anzuzeigen oder zu prüfen, ob das ein Link ist?


Moderiert von user profile iconNarses: Topic aus VCL (Visual Component Library) verschoben am Mo 30.11.2009 um 22:31
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 30.11.09 23:21 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
try
 ... 
except 
on e:IdUnknownProtocolError do   // Exception Klasse ersetzen
  something;
end;

?

_________________
PROGRAMMER: A device for converting coffee into software.
Delphi2009lover Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176



BeitragVerfasst: Di 01.12.09 16:52 
Sry damit hab ich noch nicht gearbeitet :wink:
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Di 01.12.09 17:48 
Wäre es nicht sinnvoller den Wert im Eingabefeld zu überprüfen bevor du überhaupt was mit IdHTTP machst?
Delphi2009lover Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176



BeitragVerfasst: Di 01.12.09 20:36 
keine Lust :wink:
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 01.12.09 21:48 
user profile iconDelphi2009lover hat folgendes geschrieben Zum zitierten Posting springen:
Sry damit hab ich noch nicht gearbeitet :wink:

Das heißt? Dass du dir nen Tutorial dazu durchliest? Sehr löblich, sag Bescheid, wenn es klappt ;)

_________________
PROGRAMMER: A device for converting coffee into software.
Delphi2009lover Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176



BeitragVerfasst: Di 01.12.09 22:46 
Ja ich hab schon danach auf Delphi-Treff gesucht^^ aber ich war schon dabei IdHTTP umzuschreiben xDDDD
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Do 03.12.09 11:20 
user profile iconDelphi2009lover hat folgendes geschrieben Zum zitierten Posting springen:
keine Lust :wink:


Super Einstellung! :roll:
Delphi2009lover Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 176



BeitragVerfasst: Do 03.12.09 15:24 
Nein das ist ja nicht meine EInstellung, aber wenn ich doch nur ne Meldung abfangen muss und kann somit mir alles sparen, wie "Beginnt der URL mit http:// usw" ist des doch klasse