It depends on whether it was dimensioned or not. Both of these are
equivalent:
Dim sr As StreamReader = New StreamReader(path)
Dim sr As StreamReader
sr = New StreamReader(path)
In C# (in case he wants to go to a real language *duck* only kidding, I code
both):
StreamReader sr = new StreamReader(path);
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Atrax" <> wrote in message
news:...
> one of the .aspnet groups wuld be more appropriate. Off the top of my
> head, though, as a C# (not VB) user, don't you have to use the SET
> keyword here?
>
> hang on, I take that back. the docs say :
>
> Dim sr As StreamReader = New StreamReader(path)
>
>
>
>
>
>
> ________________________________________
> Atrax. MVP, IIS
> http://rtfm.atrax.co.uk/
>
> newsflash : Atrax.Richedit 1.0 now released.
> http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!