Re: not all code paths return a value
From: Esteban404 (Esteban404_at_discussions.microsoft.com)
Date: 12/17/04
- Next message: Mike D: "Adding Parameters to WHERE clause in DataAdapter"
- Previous message: VJ: "Re: Common Files...vs GAC"
- In reply to: Ravichandran J.V.: "Re: not all code paths return a value"
- Next in thread: Frans Bouma [C# MVP]: "Re: not all code paths return a value"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 05:09:04 -0800
That's very interesting. I'll look into that documentation. I do not see that
before. I have it working now, but I will try to mark up the previous code
and see if it fires with returns in the other blocks.
Thanks again, J.V.!
"Ravichandran J.V." wrote:
> You cannot create a method that returns a string only if the try is
> successful because the compiler expects the return statement for this
> function in the catch or the finally block too.
>
> with regards,
>
>
> J.V.Ravichandran
> - http://www.geocities.com/
> jvravichandran
> - http://www.411asp.net/func/search?
> qry=Ravichandran+J.V.&cob=aspnetpro
> - http://www.southasianoutlook.com
> - http://www.MSDNAA.Net
> - http://www.csharphelp.com
> - http://www.poetry.com/Publications/
> display.asp?ID=P3966388&BN=999&PN=2
> - Or, just search on "J.V.Ravichandran"
> at http://www.Google.com
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>
- Next message: Mike D: "Adding Parameters to WHERE clause in DataAdapter"
- Previous message: VJ: "Re: Common Files...vs GAC"
- In reply to: Ravichandran J.V.: "Re: not all code paths return a value"
- Next in thread: Frans Bouma [C# MVP]: "Re: not all code paths return a value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|