您的位置:首页 > 其它

度量快速开发平台中建立公共函数和调用方法介绍

2015-10-29 16:47 369 查看
度量快速开发平台中,可以自定义各种公共函数,在其他地方进行调用。这样方便构建开发工作。

构建公共函数:



'输入参数
'this.input1 ,this.Input2,this.Input3,this.Input4,this.Input5
dim a = cint(this.Input1)
dim b =cint(this.Input2)
'输出参数 this.Output1
this.Output1 = a+b

调用公共函数:



'Call("公共函数名称",输入参数1,输入参数2...)
dim cus_func = Call("CustomFunctionTest",10,20)
'获取函数返回的值
dim ret_value = cus_func.Output1
msgbox(ret_value)

调用效果:



原文地址;http://bbs.delit.cn/thread-208-1-1.html
转载请注明出处;
撰写人:度量科技http://www.delit.cn
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: