procedure TForm1.ToolButton5Click(Sender: TObject);
begin
with dm.cmpq do begin
first;
while not eof do begin
sendon;//自定义过程
pudpDataReceived(Sender: TComponent; NumberBytes: Integer;FromIP: String; Port: Integer);//就是这儿不能调用。
//////////////////////////////////
/// 加上下面的语句试试:
sleep(1000);
////////////////////////
next;
end;
end;
end;
begin
with dm.cmpq do begin
first;
while not eof do begin
sendon;//自定义过程
pudpDataReceived(Sender: TComponent; NumberBytes: Integer;FromIP: String; Port: Integer);//就是这儿不能调用。
//////////////////////////////////
/// 加上下面的语句试试:
sleep(1000);
////////////////////////
next;
end;
end;
end;
解决方案 »
- 求助:一个表数据移动到另一个表
- 急!!急!!怎样在ListView中将之前勾中的checkboxs的选项前的选择框去掉?
- 谁有用过Indy的IdTCPServer控件?是否每个接入的客户端都会自动产生一个线程?
- 关于BLOB的读写问题!
- 我自己写的程序 有客户端服务端 服务端可以修改客户端相关设置 该怎么实现
- 请教:操作外部程序时,外部条件变化时如何及时更新外部程序菜单项的状态?
- 三层结构为什么用ClientDataSet传汉字参数.字节会减少,如何解决?
- 高分求解算法:从10万个不同No中随机抽出其中2万个各不同的!
- 请问下RadioButton2Click怎样调用RadioButton1Click1的事件。
- 一个关于TABLE FILTER 的小问题。。急
- 中文入门教程哪里有???急啊。。。(贴者分至)
- memo控件中如何控制光标指在哪个字符串上?
[Error] Unit1.pas(323): Incompatible types: 'TComponent' and 'TObject'
[Error] Unit1.pas(323): Undeclared identifier: 'NumberBytes'
[Error] Unit1.pas(323): ':=' expected but ':' found
[Error] Unit1.pas(323): ':=' expected but ':' found
[Error] Unit1.pas(323): ')' expected but ':' found
[Error] Unit1.pas(324): Missing operator or semicolon[Fatal Error] jkserver.dpr(14): Could not compile used unit 'Unit1.pas'
你要把相应的参数填进去啊~
property OnDataReceived: TOnReceive;Description
The OnDataReceived event is called when data is received from the remote hostEvent Parameters:
The NumberBytes parameter specifies the number of incoming bytes.
The FromIP parameter specifies the IP address of the computer that sent the data.
The Port property specifies which port the data was sent from.
[Error] Unit1.pas(71): INDEX, READ or WRITE clause expected, but ';' found
[Error] Unit1.pas(72): READ or WRITE clause expected, but identifier 'private' found
[Fatal Error] Unit1.pas(85): Could not compile used unit 'Unit8.pas'