Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Di 28.06.05 05:53 
Hallo, wo setze ich den Timeout für Zeus ZConnection? Und wie könnte ich entsprechend Meldung ausgeben ob
Verbindung erfolgreich oder nicht?

Ich dachte jetzt einfach eienen Timer zu nehmen den ich auf ein par Millisecunden länger sätze als den Timeout
und dann OnTimer teste ob Connected ist! Oder wird's anders gemacht?
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Mi 29.06.05 10:05 
Verwende OnAfterConnect der TZConnection
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if not ZConnection.Connected then
begin
//Meldung zeigen
end;


Damit kannst du eine Meldung ausgeben wenn nicht verbunden werden kann

mfg
MILLI

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.

[2. Beitrag]
Ach ja hab vergessen wo das timeout gesetzt wird und zwar in TZConnection.Properties

mfg
MILLI

Moderiert von user profile iconraziel: Beiträge zusammengefasst.
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Mi 29.06.05 11:06 
user profile icondirection4delphi hat folgendes geschrieben:

Ach ja hab vergessen wo das timeout gesetzt wird und zwar in TZConnection.Properties


Ach ,ja ich habe gesehen so ZConnection.Properties.Values['timeout'] := '5'; so richtig?