风雨无阻周华健在线听:关于VB6.0中函数的一个问题

来源:百度文库 编辑:高校问答 时间:2024/05/06 18:42:04
有人知道在VB6.0中
Private Function f(x As Integer, y As Integer) As Integer

Private Function f(Byval x As Integer,Byval y As Integer) As Integer
的区别么?
谢谢!

Private Function f(x As Integer, y As Integer) As Integer
里面的参数是引用传递,也就是地址传递,vb一般默认为按值传递,省略了byref.
Private Function f(Byval x As Integer,Byval y As Integer) As Integer
里面的参数是按值传递.