Metric rapid development platform, you can customize a variety of public functions, in other places to make calls. This facilitates the construction of development work.
To build a public function:
' Input parameters
' This.input1, this. Input2,this. Input3,this. Input4,this. Input5
Dim A = CInt (this. INPUT1)
Dim b =cint (this. INPUT2)
' Output parameter this. Output1
This. OUTPUT1 = A+b
Calling public functions:
' Call ("Public function name", input parameter 1, input parameter 2 ...)
Dim Cus_func = Call ("Customfunctiontest", 10,20)
' Gets the value returned by the function
Dim Ret_value = Cus_func. Output1
MsgBox (Ret_value)
Invoke Effect:
The original address; http://bbs.delit.cn/thread-208-1-1.html
Reprint please specify the source:
Author: metric Technology www. Delit. cn
Introduction to establishing public functions and calling methods in the rapid development platform of measurement