izmenjeno 1 put, poslednji put Passwd 20.11.2005. u 19:00
Izmene poruke
- Passwd20.11.2005. u 19:00zapis iz teksta poruke
Normalno se spoji..i sad treba izlistat fajlove koji se nalaze u trenutnom direktoriju ali se program tada ukoci i prestane radit...u cem je problem?
ps: probao sam dosta nacina, ali se niti jedan nije pokazao uspjesnim
Code:
procedure TForm1.Button2Click(Sender: TObject);
Var
List: TStringList;
iIndex, I: Integer;
StrFilename: String;
begin
List := TStringList.Create;
Try
FTP.List( List );
For iIndex := 0 to List.Count - 1do
begin
StrFilename := List[ iIndex ];
For I := Length( StrFilename ) downto 1 do
If StrFilename[ I ] = ' 'then
Break;
Delete( StrFilename, 1, I );
ListBox1.Items.Add( StrFilename );
End;
Finally
List.Free;
End;
end;
procedure TForm1.Button2Click(Sender: TObject);
Var
List: TStringList;
iIndex, I: Integer;
StrFilename: String;
begin
List := TStringList.Create;
Try
FTP.List( List );
For iIndex := 0 to List.Count - 1do
begin
StrFilename := List[ iIndex ];
For I := Length( StrFilename ) downto 1 do
If StrFilename[ I ] = ' 'then
Break;
Delete( StrFilename, 1, I );
ListBox1.Items.Add( StrFilename );
End;
Finally
List.Free;
End;
end;
ps: probao sam dosta nacina, ali se niti jedan nije pokazao uspjesnim