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
---------------------------
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
---------------------------
解决方案 »
- delphi关闭当前运行程序并保存文档问题
- 求一函数,返回一个字符串的简码,如果是汉字返回拼音首字母,如果是英文字符或数字,按原样返回.
- 这个问题真的很难吗?就我编了一个ie工具条,如果得到现在所在的位置,就是它的x,y值.请高手解决.
- TRichEdit的释放问题
- 如果Image的Picture内没有图像,应该怎样判断?
- 请问什么地方有Delphi网络高级编程书籍下载?
- DBtreeView的使用?
- 小女子正在写一个销售系统,有几个问题:
- 谁有经过测试正确的显示机器硬盘容量信息的源程序,急用!
- 那里可以找到关于vcl类库分析的资料?最好可以下载!
- RzStringGrid,的最后一行的颜色与其它行不同
- 急,第3次发贴,请大家帮忙,关于数据库程序设计填空题
http://community.csdn.net/Expert/topic/4506/4506759.xml?temp=.1735193
我估计两个可能
1.你的indy版本本身的BUG
2.你的ftp服务器的问题
怎么得到函数winexec调用过程中传入的参数譬如: winexec('filename 5',sw_show);
我怎么得到这个数字5
怎么得到函数winexec调用过程中传入的参数譬如: winexec('filename 5',sw_show);
我怎么在被调用的可执行文件filename中得到这个数字5并根据数字来做一些响应