I need a way to delete the last element in an array when I don't know how big the array is.
Basically I need the VB version of php array_pop, but nothing relevant seems to be appearing in search results.
use
Redim Preserve MyArray (UBound(MyArray) - 1)
Dim arr() As Long : ReDim arr(1 To 10) : ReDim Preserve arr(UBound(arr) - 1). Run-time error 9: Subscript out of range. Of course, it'll work fine if the lower bound is 0. But in VB6, it's often not. Which is a great, great thing.
List(Of Type)which is way more modern and easy to manipulate (LINQ etc...)?