Single dimensioned array, type string
Say the array has 3 element:
Redim aryString(0 to 2) as String
Debug.Print Ubound(aryString) = 2 'True
Element 0 and 2 have data and element 1 doesn't, and I want to remove that element, so that at the end there are only 2 elements in the array:
Debug.Print Ubound(aryString) = 1 'True
In VB6 I used CopyMemory and VarPtr and then Redim to remove a null string element of an array.
How do I do this in VB.NET? Is there already some function available?
Or would I just use a "for each" and transfer the elements to a new array and then redim the original and copy the back?