Aug 13
自定义函数使用方法:将此代码拷贝粘贴到自定义函数区域,然后过滤代码中就可以调用刚新增的过滤函数。
如将函数1内容贴入自定义函数,过滤代码中粘贴入MyFunc1则直接返回123。
函数1
直接数值返回123,
function MyFunc1(); begin result:=123; end;
函数2
function MyFunc2(X); var Y; begin Y := Random(100); result := X + Y + Y; end;
函数3
function Fact(N: Integer): Integer;
begin
if N = 1 then
result := 1
else
result := N * Fact(N - 1);
end;
One Ping to “定制过滤插件函数说明!”
Leave a Reply
You must be logged in to post a comment.
8月 30th, 2008 at 10:29 下午
[...] 自定义函数请参照定制过滤插件函数说明 [...]