Kyle.Allbright
Active member
- Joined
- Apr 19, 2010
- Messages
- 28
- Programming Experience
- 1-3
I am having difficulty understanding the = operation in vb.net, my problem is as follows:
If I have:
If we do:
number would be 5 aswell (we all know this!)
If I then do:
number would be 6, and numberTwo would STILL be 5 (again, simple!)
So here is my problem:
When I did this:
mNodeList would equal to the nodes within the element //.Kyle (again this works)
Now, If I cycle through this nodelist and change all the .innertext to something random, lets say "vb.net forums"
It would do that, Now If I then set Nodelist = Nothing
my Root would now have altered in the same way that the nodelist did.
...???? wha???
If I have:
VB.NET:
dim number as int
dim numberTwo as int = 5
If we do:
VB.NET:
number = numberTwo
number would be 5 aswell (we all know this!)
If I then do:
VB.NET:
number += 1
number would be 6, and numberTwo would STILL be 5 (again, simple!)
So here is my problem:
When I did this:
VB.NET:
dim mNodeList as XmlNodeList = Root.SelectSingleNodes("//.Kyle")
mNodeList would equal to the nodes within the element //.Kyle (again this works)
Now, If I cycle through this nodelist and change all the .innertext to something random, lets say "vb.net forums"
It would do that, Now If I then set Nodelist = Nothing
my Root would now have altered in the same way that the nodelist did.
...???? wha???