Autor Beitrag
Borlox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Fr 01.11.02 17:14 
Hi Leute,

ich baue eine Verbindung zu meinem Server per NMFTP (Fastnet) auf und ich wenn die Verbindung unterbrochen wird, dann möchte ich sozusagen eine eigene Fehlermeldung schreiben und nicht das das mit dem "Error bei.. 10024" oder so änlich, angezeigt wird!
Gibt es da eine Möglichkeit die Fehlermeldung zu unterdrücken?
Ich habe es schon versucht unter der Komponente mit dem OnError-Befehl, aber dann kommt die andere Fehlermeldung immer noch!!!

Danke
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Fr 01.11.02 23:57 
Hallo,

du musst bei dem Ereignis den Code angeben(10024).

In der IDE zeigt er immer alle Fehler an.

_________________
If accidentally read, induce vomitting.
waldmeister
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

Win XP
D7 Enterp
BeitragVerfasst: Sa 02.11.02 02:49 
Im OnError Ereignis vom Client musst du
ausblenden Quelltext
1:
errorcode:=0;					

reinschreiben!

_________________
der wald....der meister....der meister des waldes....der waldmeister
Borlox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Sa 02.11.02 17:13 
Titel: Errorcode
Wenn ich das beim OnError Ereigniss der NMFTP1-Komponente das oben genannte eingeben, dann gibt es diese Fehlermeldung:
Zitat:
[Error] UAntiVirus.pas(67): Undeclared identifier: 'errorcode'


Danke