Setting a reference to variable

Robert_Zenz

Well-known member
Joined
Jun 3, 2008
Messages
503
Location
Vienna, Austria
Programming Experience
3-5
Hello.

I want to set a reference to a variable similar to ByRef.
I'm using some global objects which are declared in each form like
VB.NET:
Private myObj as Obj = GlobaleConstant.bla.globObj
.

The problem is, this is copying the momentary value of the object and is not setting a 'real' reference.
Does anybody know how to set such a reference similar to a pointer?

Thanks for the help,
Bobby
 
Yes, class instances are object references.
 

Latest posts

Back
Top