GetRef用法

来源:互联网 发布:电子请柬制作软件 编辑:程序博客网 时间:2024/06/02 00:06

GetRef is used to create a pointer object to a function


MsgBox test3(3,4,GetRef("test1"))
MsgBox test3(3,4,GetRef("test2"))

Function test1(a,b)
test1= a+b
End Function

Function test2(a,b)
   test2= a*b
End Function

Function test3(a,b,FunPointer)
test3=FunPointer(a,b)
End Function

原创粉丝点击