为什么自定义过程,出错。说[Error] Unit2.pas(29): Undeclared identifier: 'NMFTP1'unit Unit2; procedure a();begin Form2.NMFTP1.port := 21;end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure a();begin Form2.NMFTP1.port := 21;end; 改成这样interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, Psock, NMFtp;typeTForm2 = class(TForm)NMFTP1: TNMFTP;private//加上这句 procedure a();{ Private declarations }public{ Public declarations }procedure a();end;varForm2: TForm2;implementation{$R *.dfm}//改成这样procedure TForm2.a();beginNMFTP1.port=21end;end. public{ Public declarations }//此句不要procedure a();end; procedure Tform2.a();////我改了这里beginNMFTP1.port=21end;end. 求救,多个客户端程序可以同时发送文件到服务器端,服务端程序自动接收文件并保存。 判断数据的合法性等的问题[悬赏100分] 找MS TTS 的资料 请问怎样监测网卡的当前传输速率? 如何实现在将工程隐藏在DLL中! 高分请教!!DBF文件的查询! 怎样将dxdbgrid控件中的"Drag a column header here to group by that column" 寻找好的字符串加密算法? 为Application添加了一个菜单项,如何捕捉该菜单项的点击事件? 看看了 com的问题 请教:已有例子可以文字绕x轴转,怎么能让文字绕y轴转?
begin
Form2.NMFTP1.port := 21;
end;
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Psock, NMFtp;
type
TForm2 = class(TForm)
NMFTP1: TNMFTP;
private
//加上这句
procedure a();
{ Private declarations }
public
{ Public declarations }
procedure a();
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
//改成这样
procedure TForm2.a();
begin
NMFTP1.port=21
end;
end.
{ Public declarations }
//此句不要
procedure a();
end;
begin
NMFTP1.port=21
end;
end.