Byref Byval and errors: (oh my?)
Okay I have a wrap function:
Very simple (gets the job done)
Public Function Wrap(Value As Integer, Max As Integer, Min As Integer) As Integer
If Value = Max + 1 Then
Wrap = Min
Else
Wrap = Value
End If
End Function
Now when I call this
Bob = wrap(bob,20,0)
it gives Byref error,
I know how to fix this, but can someone explain or point me to a resource that explains what byref and byval do?
Thank you very much,
Brad,
Hey! email me any time! Bradsvb@yahoo.com
Okay I have a wrap function:
Very simple (gets the job done)
Public Function Wrap(Value As Integer, Max As Integer, Min As Integer) As Integer
If Value = Max + 1 Then
Wrap = Min
Else
Wrap = Value
End If
End Function
Now when I call this
Bob = wrap(bob,20,0)
it gives Byref error,
I know how to fix this, but can someone explain or point me to a resource that explains what byref and byval do?
Thank you very much,
Brad,
Hey! email me any time! Bradsvb@yahoo.com