Delphi TIdFTPServer的事件

Delphi TIdFTPServer的事件,delphi,delphi-xe2,indy,Delphi,Delphi Xe2,Indy,当我试图在IdFTPServer1的OnListDirectory事件中编写代码时,编译器会这样说: [DCC Error] Unit1.pas(18): E2003 Undeclared identifier: 'TIdFTPListOutput' 似乎ADirectoryListing作为TIdFTPListOutput是OnListDirectory事件过程中未声明的标识符,该indy的其他事件函数中也存在同样的问题。我怎样才能解决它 procedure TForm1.IdFTPServ

当我试图在
IdFTPServer1
OnListDirectory
事件中编写代码时,编译器会这样说:

[DCC Error] Unit1.pas(18): E2003 Undeclared identifier: 'TIdFTPListOutput'
似乎
ADirectoryListing
作为
TIdFTPListOutput
OnListDirectory
事件过程中未声明的标识符,该indy的其他事件函数中也存在同样的问题。我怎样才能解决它

procedure TForm1.IdFTPServer1ListDirectory(ASender: TIdFTPServerContext;
  const APath: string; ADirectoryListing: TIdFTPListOutput; const ACmd,
  ASwitches: string);
begin

end;

谢谢您的帮助,将
IdFTPListOutput
单元添加到
uses
子句中。

请不要在标题中添加标签信息。这里的标签系统非常擅长分类,不需要帮助。:-)请看。谢谢