NeuralJack
Centurion
- Joined
- Jul 28, 2005
- Messages
- 138
I think I know the answer to this , but just want to double check. Using OOP like a good boy should, I pass forms to other forms often. By default vs.net uses a ByVal word instead of byref. Also, I've seen many other vb.net code examples that pass a form to a form or an object around and ByVal seems to work like ByRef in those instances.
Am i right? I sure hope i'm not passing a whole copy of the form over when i use ByVal, and I hope i'm just passing a reference to the form i want to pass. ByVal should actually mean that i'm passing a copy to the new form though, according to old C++, am i right?
So are ByVal and ByRef pretty meaningless on many objects such as forms, controls, and other classes besides pure data values?
Am i right? I sure hope i'm not passing a whole copy of the form over when i use ByVal, and I hope i'm just passing a reference to the form i want to pass. ByVal should actually mean that i'm passing a copy to the new form though, according to old C++, am i right?
So are ByVal and ByRef pretty meaningless on many objects such as forms, controls, and other classes besides pure data values?