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

    构建公共函数:
度量快速开发平台中建立公共函数和调用方法介绍_开发平台 
'输入参数
'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



调用公共函数:

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

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


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

原文地址;http://bbs.delit.cn/thread-208-1-1.html

转载请注明出处;

撰写人:度量科技http://www.delit.cn