What exactly are you trying to do? Your initial question was how to replace
the Space$ function from VB6.
On 9/24/07, Agus Salim < asalim%40aneka-infokom.co.id">asalim
aneka-infokom.co.id> wrote:
>
> Hhmm, I think that VS2005 can't accept " " empty string.
> After I changed the " " into "&nbsp;" it works.
>
> But when I add the space in the listbox, it show
>
>
>
> -----Original Message-----
> From: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOk
yahoogroups.com
> [mailto: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOk
yahoogroups.com] On Behalf Of Dean Fiala
> Sent: 21 September 2007 19:42
> To: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOk
yahoogroups.com
> Subject: Re: [AspNetAnyQuestionIsOk] space
>
> Dim ATenSpaceString as String = new String(" "c, 10)
>
> Dim ATwentySpaceString as String = new String(" "c, 20)
>
> Dim X as Integer = 30
>
> Dim AnXSpaceString as String = new String(" "c, X)
>
>
> On 9/21/07, Agus Salim < asalim%40aneka-infokom.co.id">asalim
aneka-infokom.co.id> wrote:
> >
> > Hi Dean,
> >
> > How to use the String class that you gave to me?
> > I tried to use it but only add 1 space. Is there
> >
> > Eg: space(10) then, it will add 10 space character.
> >
> > Tried to open the link that you gave, but I still don't get it.
> >
> >
> > Please advice.
> > Thanks
> >
> >
> > -----Original Message-----
> > From: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOk
yahoogroups.com
> > [mailto: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOk
yahoogroups.com] On Behalf Of Dean Fiala
> > Sent: 19 September 2007 21:30
> > To: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOk
yahoogroups.com
> > Subject: Re: [AspNetAnyQuestionIsOk] space
> >
> > Everything is OOP in .NET...
> >
> > In this case you want to use the String class, specifically the
> > constructor
> > that uses a character to generate a string of a specified length.
> >
> > Dim SomeSpaceString as String = new String(" "c, 276)
> >
> > http://msdn2.microsoft.com/en-us/library/aa331867(vs.71).aspx
>
>
>
> Yahoo! Groups Links
>
>
>
>
--
Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP
[Non-text portions of this message have been removed]