Autor Beitrag
Basti
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: Sa 12.06.04 13:17 
Hallo Leute, ich code gerade ein FTP Programm
und habe gemerkt, dass alle Fehler in Englisch ausgegeben werden,
was sicher an Indy9 liegt.
Gibt es eine Möglichkeit die Fehlermeldungen zu übersetzen?
Wäre dann leichter für meine "Kundschaft" ;-) die Fehler zu verstehen...
Danke
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 12.06.04 16:58 
du kannst die fehler in exceptions abfangen und dann individuell mit eiegenen fehlermeldungen arbeiten !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Basti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: Sa 12.06.04 17:18 
Kannst du dafür ein beispiel liefern?
Woher weiss ich denn welche fehler es so alles gibt und wann einer auftaucht?
Habe davon leider keien Ahnung... :-(
Aber trotzdem danke ;-)
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Sa 12.06.04 17:26 
Matze (so heisst mein bester Freund übrigens auch ;) ) meint damit das du einen Try-Except Block einarbeiten sollst:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
try
  idftp1.connect();
except
  showmessage('Ging nicht');
end;


Der Try-Except Block ist ganz einfach zu verstehen. Wenn du ihn mal ins deutsche übersetzt heisst das ja soviel wie: Probiere - Ausnahme. Also Probiere ob idftp1.connect funktioniert, wenn nicht dann showmessage.

ps: Eine nähere Beschreibung (also ob passwort falsch oder sowas) lieft dir auch indy nicht. Da kommt ja auch nur: 530 - Access denied.
Basti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: Sa 12.06.04 20:00 
Bei mir kommen da spezielle Fehler:
"Zugriff verweigert", "Ordner kann nicht gelöscht werden, weil er nicht leer ist" etc. aber in English.
Aber ich versuchs mal so ;-)
Vielleicht hat ja jemand noch eine Idee...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 13.06.04 10:22 
ja allerdins leifert indy dann bestimme exception tpen zurück auf die du auch indivisduell reagieren kannst.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Basti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 345

Windows Vista
D2005 Pers, D7 Pers
BeitragVerfasst: So 13.06.04 13:36 
Kann ich irgendwo nachlesen, welche "bestimmte Exception Typen" es gibt?
Mit dem individuell reagieren ist sicher wieder try..exception gemeint, oder?
Danke
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 14.06.04 16:44 
jep. und zieh dir einfach mal die komplette hilfe von indy runter.

_________________
In the beginning was the word.
And the word was content-type: text/plain.