似乎pascal不支持函数作为参数传递给另一个函数。
解决方案 »
- 使用midas开发过项目的兄弟进来讨论一下,会有收获的 :)
- 请问如果将一个查询出来的表存另存在一个xls里面
- 如何在DBgrid中显示图形
- 写了一个小小的倒计时的程序,感兴趣的留下邮箱,顺便帮我提一下意见,多谢
- 如何编程实现usb禁用,有人说过能通过驱动实现,如何实现????
- 我在使用fastreport中的PrintTable控件生成报表时,如何在报表中实现动态设置报表的打印纸是A3的还是A4的?
- 急
- delphi中的参数修饰符out与var的区别是什么
- string类型怎么转换为pchar类型?
- 请问InsideDelphi。能否帮我解决实现从右往左输入的问题。在demo控件里。
- 空谈误国 实干兴邦
- 我有一个问题想问问大家!!!有分送哟。
TFuncB = function (c: Integer; var d: Integer): Integer;function FuncA(funcB: TFuncB; e: Integer): Integer;
可以码
请问如何编写funcB函数? 能举个例子吗?
TFuncB = function (c: Integer; var d: Integer): Integer;function FuncB(c: Integer; var d: Integer): Integer;
begin
{}
end;function FuncA(funcB: TFuncB; e: Integer): Integer;
begin
if Assigned(funcB) then {funcB()};
end;procedure TForm1.Button1Click(Sender: TObject);
begin
FuncA(FuncB, 1);
end;
呵呵