Autor Beitrag
Fischman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Fr 23.04.04 15:55 
Hallo Leute,
ich lasse mit idFTP1.List(ListBox1.Items,'',false) denn Ihalt vom Server anzeigen das geht ja ganz gut.Aber wenn
ich nun ein Download machen möchte bekomme ich eine Fehlermeldung "unbekantes Listenformat".Wenn ich das mit
idFTP1.List(ListBox1.Items) mache funktioniert das ganze wieder.Wer kann mir da mal weiter helfen.Ich möchte das
erste Beispiel benutzen.
Pierre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 138

Win 98se und XP prof
D5Pers und D7Prof
BeitragVerfasst: Sa 24.04.04 22:47 
Hallo,
ich benutze auch Dein erstes Beispiel. Wo bekommst Du denn diese Fehlermeldung?
Ist es der Zeitpunkt, an dem Du die Listbox mit den Serverinhaltsverzeichnis lädst oder ist es der Zeitpunkt an welchem Du eine Position aus der Listbox downloaden willst?
Gruß Pierre
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: So 25.04.04 06:58 
Hallo,
ich bekomme die Fehlermeldung wenn ich aus der ListBox downloaden möchte.

Gruß Uwe
Pierre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 138

Win 98se und XP prof
D5Pers und D7Prof
BeitragVerfasst: So 25.04.04 09:59 
Hallo,
ich mache dies so:

in einer Schleife [0..count!]hole ich mir Schritt für Schritt die Listboxeinträge in den String Datei_Avis:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
for i:=0 to listbox1.Items.count-1 do
begin

     Datei_Avis:=listbox1.Items.strings[i];

// hier ist sonst Code, der den Namen der Datei1 so verändert, dass er noch nicht auf der Festplatte ist

     try
     idftp1.get(Datei_Avis,ExtractFilePath(Application.Exename) + '\Avise\'+Datei1,true);
     except
     memo1.Lines.Add('Fehler beim Download! ');
     end;
// hier ist sonst Code, durch welchen ich warte, bis die Datei1 geschrieben ist, ist für den Download  - glaube ich - //nicht relevant, ich zeige mir hier nur den Erfolg des i-ten Downloads an.
end;


Gruß Pierre
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Mo 26.04.04 08:29 
Hallo,
werde ich heute noch ausprobieren.

Gruß Uwe