Is it possible to divide a function into sections, something like this?
Function myFunc
Section
Dim i As Integer = 0
...
End Section
Section
Dim i As Integer = 0
...
End Section
End Function
I realize it could be done with
If True Then
Dim i As Integer = 0
...
End If
but that seems like a hack
Am I going about this the wrong way?
I would recommend refactoring your “Sections” into separate functions or subs, and calling them as appropriate. The fact that you want this separate seems like it highlights an opportunity for refactoring….