I've been wondering, can the Main method return something? All this time I coded Main as a Sub and not a Function.
In C, I can return an integer value at the end of main. Is this possible in VB.NET?
But this doesn't work. Thanks in advance!Code:Module Module1 Function Main(ByVal args() As String) Return 0 End Function End Module