How to edit structure items on a system.collections.generic list (of )
I have a quite complex problem where I have an already populated list of a structure and I need to edit the individual items.
Here's an example of code that does not work for me:
Public Class Form1
Private Structure myStringStructure
Dim mystr As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim hj As New List(Of myStringStructure)
hj(0).mystr = "hmm"
It tells me that: "Expression is a value and therefore cannot be target of an assignment."
So how do I edit the mystr of the lists entry 0. ?
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.