Autor Beitrag
wunsiedler
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 506
Erhaltene Danke: 4

Win7

BeitragVerfasst: Mo 06.12.04 20:19 
Folgender Code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
form2.show;
 try
  text := idhttp1.Get('http://www.lotto-rlp.de/zahlen/gwz_keno.php');
 except
  showmessage('Fehler');
  form2.close;
 end;
 form2.close;


Ich mache Form2 auf. Auf Form2 ist nur ein Label mit dem Inhalt 'Bitte Warten'. Ich hole mir den Inhalt der Seite. Ich mache Form2 wieder zu. Jetzt das Problem:

Es funktioniert alles prima, aber auf Form2 kommt das 'Bitte warten' nicht, sprich es macht nur das leere Form auf und schliesst dann wieder.Woran liegt das?
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Mo 06.12.04 20:23 
Hängt sich die Form vielleicht auf. Sprich sie bleibt stehen? Wenn ja: schau dir die komponente idAntiFreeze, oder den Befehl Suche in: Delphi-Forum, Delphi-Library APPLICATION.PROCESSMESSAGES an.
Benutzername
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 210

Win XP Pro
Delphi 7 PE, D2005 Prof. SSL
BeitragVerfasst: Mo 06.12.04 21:06 
Kleiner Tipp: Das Form2.Close im except-Teil ist überflüssig, wenn du die Form danach eh schließt ;-)

[edit]Jaaa, Jaaa! Immer diese Tippfelher wei knan dsa nur passierne= :-P

Ach ja: Was kommt für eine Fehlermeldung? Was passiert bzw. passiert nicht? :-P :mrgreen:
[/edit]


Zuletzt bearbeitet von Benutzername am Mo 06.12.04 21:51, insgesamt 1-mal bearbeitet
wunsiedler Threadstarter
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 506
Erhaltene Danke: 4

Win7

BeitragVerfasst: Mo 06.12.04 21:47 
Benutzername hat folgendes geschrieben:
Kleiner Tipp: Das Form2.Colse im except-Teil ist überflüssig, wenn du die Form danach eh schließt ;-)



also Form2.Colse gibt bei mir eine Fehlermeldung.......... :P :P :twisted:

Application.ProcessMessages war das richtige Stichwort und hat geklappt.
Danke