度量快速开发平台中建立公共函数和调用方法介绍
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
构建公共函数:
'输入参数
'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
相关文章推荐
- dos下使用fdisk格式化MBR
- 151029总结
- mysqldatadir 转移
- Centos 内存占满 释放内存
- 另类挂钩-RING3数据包监视
- 面试经常考到的题目总结20151029
- 大学养着的这几个习惯将受益终生
- 华为OJ题目(二):字符个数统计
- 跨域问题总结
- Python 基础——range() 与 np.arange()
- Redis集群搭建(一主多从)
- DrawTools(画图工具) From CodeProject
- Pixhawk---固件编译由make编译系统转到cmake编译系统解决方法,快来看
- App自动更新之通知栏下载
- Linux 下编译安装 PHP 5.6
- Android LayoutInflater原理分析(一)
- 原生java调用webservice的方法,不用生成客户端代码
- 从头认识java-6.1 聚合(aggregation)
- AnimationDrawable 动画监听
- session与cookie的区别