IDFtp.directorylisting属性出错;紧急求助

ann790914 2006-01-12 05:44:17
procedure TMainForm.ChageDir(DirName: String);
Var
LS: TStringList;
begin
LS := TStringList.Create;
try
SetFunctionButtons(false);
IdFTP1.ChangeDir(DirName);
IdFTP1.TransferType := ftASCII;

CurrentDirEdit.Text := IdFTP1.RetrieveCurrentDir;

DirectoryListBox.Items.Clear;
IdFTP1.List(LS);
DirectoryListBox.Items.Assign(LS);
if DirectoryListBox.Items.Count > 0 then
if AnsiPos('total', DirectoryListBox.Items[0]) > 0 then DirectoryListBox.Items.Delete(0);
finally
SetFunctionButtons(true);
LS.Free;
end;
end;

上述过程;执行时报错:
错误提示为:

---------------------------
Debugger Exception Notification
---------------------------
Project FTPDemo.exe raised exception class EIdInvalidFTPListingFormat with message 'Unknown FTP listing format'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
...全文
187 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
ann790914 2006-01-13
  • 打赏
  • 举报
回复
麻烦帮忙再给解决一下:
怎么得到函数winexec调用过程中传入的参数

譬如: winexec('filename 5',sw_show);
我怎么在被调用的可执行文件filename中得到这个数字5并根据数字来做一些响应
ann790914 2006-01-13
  • 打赏
  • 举报
回复
麻烦帮忙再给解决一下:
怎么得到函数winexec调用过程中传入的参数

譬如: winexec('filename 5',sw_show);
我怎么得到这个数字5
ann790914 2006-01-13
  • 打赏
  • 举报
回复
更新过版本后问题消失;谢谢楼上了;
ann790914 2006-01-13
  • 打赏
  • 举报
回复
搞定;谢谢了;
柯本 2006-01-13
  • 打赏
  • 举报
回复
ParamStr(1)就可以了
柯本 2006-01-12
  • 打赏
  • 举报
回复
同样的问题
http://community.csdn.net/Expert/topic/4506/4506759.xml?temp=.1735193
我估计两个可能
1.你的indy版本本身的BUG
2.你的ftp服务器的问题
ann790914 2006-01-12
  • 打赏
  • 举报
回复
紧急求助;兄弟们帮帮忙!

5,930

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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