Schorschi Decker
10/18/2002 4:44:00 AM
Does not seem to work?
VB console application still returns 0, when I return 1.
---
Public Function Main(ByVal theArgument() As String) As Integer
Return 1
End Function
"Tom Shelton" <tom@mtogden.com> wrote in message
news:uiAOnjkdCHA.2056@tkmsftngp11...
>
> "Schorschi Decker" <schorschi@dslextreme.com> wrote in message
> news:uqupi844b5vtb4@corp.supernews.com...
> > I know this is in the documentation some where but I can't seem to find
> it.
> > Need to return a status code when the VB .NET console application
exists.
> > Something like Application.Exit(0) or similar method?
> >
>
> Public Function Main(ByVal args() As String) As Integer
>
> ....
>
> Return 0 ' return a value to the caller...
> End Function
>
> HTH,
> Tom Shelton
>
>