Ok, well you'll need to post some sample code so the incredible cadre of
helpful experts here can show how to fix it. Substring is a method on the
string class, has nothing to do with StreamReader.
Example:
Dim xyz as String
xyz="12345678901234567890"
Dim abc as String = xyz.Substring(0,9)
--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
".Net Sports" wrote:
[color=blue]
> Thanks for the input (and converter, Peter)..
> ..I'm getting a substring not a member of 'System.IO.StreamReader'
> error when trying this. And also, I'm not using any type of input
> control (for the MyText. prefix)
> thanks
> netsports
>
> Kevin Spencer wrote:[color=green]
> > The VB.Net equivalent of:
> >
> > string newStr =MyText.Substring(0, 25)
> > or
> > string newStr=MyText.Substring(0, MyText.LastIndexOf("<BR>");
> >
> > is:
> >
> > Dim newStr As String =MyText.Substring(0, 25)
> > or
> > Dim newStr As String=MyText.Substring(0, MyText.LastIndexOf("<BR>")
> >
> > .....
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > You can lead a fish to a bicycle,
> > but it takes a very long time,
> > and the bicycle has to *want* to change.
> >
> > ".Net Sports" <ballz2wall@cox.net> wrote in message
> > news:1137446982.025616.36860@g49g2000cwa.googlegro ups.com...[color=darkred]
> > > Thanks....
> > >
> > > ....can anyone provide a vb.net equivalent?
> > >[/color][/color]
>
>[/color]