VB“类模块”怎么用啊

来源:百度知道 编辑:UC知道 时间:2024/07/15 05:11:33

类模块和其他的模块一样 比如你定义一个模块
Public function mx(byval i as integer,byval j as integer) as integer
mx=i+j
end function
调用的方法是
privete sub Command1_Click()
msgbox call(10,20)
end sub
这样就可以了