贱驴325rs拆机:关于VB6.0中函数的一个问题

来源:百度文库 编辑:高考问答 时间:2024/04/27 22:09:00
有人知道在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
里面的参数是按值传递.