If I want to exit the function where i'm in, could i use exit()?

grtz JC

Re: how to exit a function? by Boris

Boris
Thu Feb 26 05:14:50 CST 2004

On Thu, 26 Feb 2004 12:09:17 +0100, Jeroen CEuppens wrote:

> If I want to exit the function where i'm in, could i use exit()?

just use:
return;

(and if it is a function with result you should use a proper return value
so that the calling function can recognize it... if you need this)

Boris

Re: how to exit a function? by Jon

Jon
Thu Feb 26 05:17:10 CST 2004

Jeroen CEuppens <jeroen.ceuppens@barco.com> wrote:
> If I want to exit the function where i'm in, could i use exit()?

Nope, just

return;

(in C#, at least).

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Re: how to exit a function? by Felipe

Felipe
Thu Feb 26 07:40:16 CST 2004

Exit Function in VB

"Jeroen CEuppens" <jeroen.ceuppens@barco.com> wrote in message
news:#lR4KjF$DHA.3452@TK2MSFTNGP11.phx.gbl...
> If I want to exit the function where i'm in, could i use exit()?
>
> grtz JC
>
>



Re: how to exit a function? by Zanna

Zanna
Sat Feb 28 06:38:28 CST 2004

"Felipe T." <fjapor@bol.com.br> wrote in message
news:OP73H3G$DHA.2212@TK2MSFTNGP10.phx.gbl...
> Exit Function in VB

Return in VB too.
Exit Function is a little obsolete.


--
Math Parser : http://www.neodatatype.net