首页 > 其他 > 详细

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

时间:2015-10-29 18:30:04      阅读:228      评论:0      收藏:0      [点我收藏+]

 度量快速开发平台中,可以自定义各种公共函数,在其他地方进行调用。这样方便构建开发工作。

    构建公共函数:
技术分享 
‘输入参数
‘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

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

原文:http://delit.blog.51cto.com/5487020/1707782

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!