List Info

Thread: RE: space




RE: space
country flaguser name
Indonesia
2007-09-24 01:21:20

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">AspNetAnyQuestionIsOkyahoogroups.com
[mailto: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com] On Behalf Of Dean Fiala
Sent: 21 September 2007 19:42
To: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.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">asalimaneka-infokom.co.id> wrote:
&gt;
> Hi Dean,
&gt;
> How to use the String class that you gave to me?
> I tried to use it but only add 1 space. Is there
&gt;
> Eg: space(10) then, it will add 10 space character.
>
&gt; Tried to open the link that you gave, but I still don't get it.
>
>
&gt; Please advice.
> Thanks
&gt;
>
> -----Original Message-----
> From: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; [mailto: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com] On Behalf Of Dean Fiala
&gt; Sent: 19 September 2007 21:30
&gt; To: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; Subject: Re: [AspNetAnyQuestionIsOk] space
&gt;
> 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(&quot; "c, 276)
>;
> http://msdn2.microsoft.com/en-us/library/aa331867(vs.71).aspx

__._,_.___
.

__,_._,___
Re: space
country flaguser name
United States
2007-09-24 07:26:08

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">asalimaneka-infokom.co.id> wrote:
&gt;
> Hhmm, I think that VS2005 can't accept " " empty string.
> After I changed the " " into "&;nbsp;"; it works.
&gt;
> But when I add the space in the listbox, it show &nbsp;
>
&gt;
>
> -----Original Message-----
> From: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; [mailto: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com] On Behalf Of Dean Fiala
&gt; Sent: 21 September 2007 19:42
&gt; To: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; Subject: Re: [AspNetAnyQuestionIsOk] space
&gt;
> Dim ATenSpaceString as String = new String(&quot; "c, 10)
>
> Dim ATwentySpaceString as String = new String(&quot; "c, 20)
>
> Dim X as Integer = 30
>
> Dim AnXSpaceString as String = new String(&quot; "c, X)
>
>
&gt; On 9/21/07, Agus Salim < asalim%40aneka-infokom.co.id">asalimaneka-infokom.co.id> wrote:
&gt; >
>; > Hi Dean,
&gt; >
>; > How to use the String class that you gave to me?
> > I tried to use it but only add 1 space. Is there
&gt; >
>; > 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
&gt; >
>; >
>; > -----Original Message-----
> > From: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; > [mailto: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com] On Behalf Of Dean Fiala
&gt; > Sent: 19 September 2007 21:30
&gt; > To: AspNetAnyQuestionIsOk%40yahoogroups.com">AspNetAnyQuestionIsOkyahoogroups.com
&gt; > Subject: Re: [AspNetAnyQuestionIsOk] space
&gt; >
>; > 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(&quot; "c, 276)
>; >
>; > http://msdn2.microsoft.com/en-us/library/aa331867(vs.71).aspx
>
&gt;
>
> Yahoo! Groups Links
&gt;
>
>
>;

--
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]

__._,_.___
Recent Activity
Visit Your Group
Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Yoga Resources

on Yahoo! Groups

Take the stress

out of your life.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )