关于FTP的问题!请求帮助!

cpilq 2003-11-25 09:12:43
procedure TForm1.actRemoteChangeDirExecute(Sender: TObject);
var
LS:TStringList;
FileCount:Integer;
newItem:TListItem;
FolderCount:Integer;
begin
try
LS := TStringList.Create;
IdFTP1.ChangeDir(suiComboBox1.Text);
suiListView3.Items.Clear;
IdFTP1.List(LS);
FolderCount := 0;
for FileCount := 0 to LS.Count -1 do
begin
if IdFTP1.DirectoryListing.Items[FileCount].ItemType = ditDirectory
then
begin
newItem := suiListView3.Items.Insert(FolderCount);
newItem.ImageIndex := 0;
newItem.SubItems.Add('文件夹');
end
else
begin
newItem := suiListView3.Items.Add;
newItem.ImageIndex := 1;
newItem.SubItems.Add('');
end;
newItem.Caption;
IdFTP1.DirectoryListing.Items[FileCount].FileName;
newItem.SubItems.Add(IntToStr(IdFTP1.DirectoryListing.Items[FileCount].Size));
newItem.SubItems.Add(DateToStr(IdFTP1.DirectoryListing.Items[FileCount].ModifiedDate));
end;
finally
LS.Free;
end;
end;


编译的时候出错!不知道如何修改!请求各位的帮助!谢谢各位!
...全文
40 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cpilq 2003-11-26
  • 打赏
  • 举报
回复
问题已解决!大家分分了哦!
chris_crow 2003-11-25
  • 打赏
  • 举报
回复
up
皮皮爸 2003-11-25
  • 打赏
  • 举报
回复
没用过!帮你顶!
whxhz80 2003-11-25
  • 打赏
  • 举报
回复
路过,先收藏,等待解决方法
yanglingbi 2003-11-25
  • 打赏
  • 举报
回复
up
cpilq 2003-11-25
  • 打赏
  • 举报
回复
没有人进来!我自己顶一下!哈哈!

1,594

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧