2,892 questions
In VB and C# it is not possible to modify the strings (which are “immutable”), but you can replace the items of the list with other values. For example, lstStt(0) = ""
will replace the first item with ""
. To modify more items, use a For loop, or maybe something like this:
Enumerable.Range(0, lstStt.Count).All(Function(i)
lstStt(i) = "" : Return True
End Function)
You can also create a new list:
lstStt = Enumerable.Repeat("", lstStt.Count).ToList