
加好友 发短信
等级:童狐
帖子:269
积分:1951
威望:0
精华:0
注册:2016/1/10 23:56:00
|
是否已取消动态管理函数 Post By:2021/12/15 12:42:00 [显示全部帖子]
是否已取消动态管理函数
示例
下面的代码定义了一个简单的Sum函数:
Dim Code As string Code = "Dim
Val1 As Integer = 1"
&
vbcrlf Code =
Code
&
"Dim Val2 As Integer = 2"
&
vbcrlf Code =
Code
&
"Dim Sum As Integer = Val1 + Val2"
&
vbcrlf Code =
Code
&
"Return Sum" Functions.Add("Sum",Code) Functions.Complie()
这样我们就可以在其余地方调用此函数:
Functions.Execute("Sum")
是否已取消动态管理函数
|
|