July 24th, 2014, 10:01 PM
Simple question on updating List items
I'm trying to find a simple way to update the items in a list. When using For...Each the items do not actually get updated. See the following code...
Private Structure test
Dim iNum As Integer
Dim strStr As String
Private oTest As New List(Of test)
Dim newTest = New test
newTest.iNum = 1
newTest.strStr = "a"
For Each testItem As test In oTest
testItem.iNum = 2
The list hasn't updated at this point. How can the list be modified?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!