Despite that problem, I managed to develop a Function that compensates for the lack of "Redim Preserve", which is completely... useless
(there is a simpler and more useful solution: using a List - although, in some
rare cases, it is necessary to use an Array) .
But it was a good workout, anyway.
Sub AppStart (Form1 As Form, Args() As String)
Dim arr(10) As Int
For i = 0 To 9
arr(i) = i + 1
Next
arr = modUtils.RedimPreserve(arr, 15)
For i = 0 To arr.Length - 1
Log(arr(i))
Next
End Sub
Waiting for debugger to connect...
Program started.
1
2
3
4
5
6
7
8
9
10
0
0
0
0
0