By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

What command creates character 'x' times ... 'xxxxx'

P: n/a
Hi,

I would like to find command like:

RepeatThisCharacterXTimes(CharacterToRepeat, TimesToRepeat)

Dim MyString as String = RepeatThisCharacterXTimes("x", 5)
MyString is now 'xxxxx'

I'm sure I've seen this command previously however have not been able to
find it again. I also recall something similar in VB6.

Does it exist in VB.NET?

Thanks
Harry
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Dim a As New String("X", 10)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"harry" <harry@nospam> wrote in message
news:eF**************@TK2MSFTNGP10.phx.gbl...
Hi,

I would like to find command like:

RepeatThisCharacterXTimes(CharacterToRepeat, TimesToRepeat)

Dim MyString as String = RepeatThisCharacterXTimes("x", 5)
MyString is now 'xxxxx'

I'm sure I've seen this command previously however have not been able to
find it again. I also recall something similar in VB6.

Does it exist in VB.NET?

Thanks
Harry

Nov 20 '05 #2

P: n/a
Thanks.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Dim a As New String("X", 10)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"harry" <harry@nospam> wrote in message
news:eF**************@TK2MSFTNGP10.phx.gbl...
Hi,

I would like to find command like:

RepeatThisCharacterXTimes(CharacterToRepeat, TimesToRepeat)

Dim MyString as String = RepeatThisCharacterXTimes("x", 5)
MyString is now 'xxxxx'

I'm sure I've seen this command previously however have not been able to
find it again. I also recall something similar in VB6.

Does it exist in VB.NET?

Thanks
Harry


Nov 20 '05 #3

P: n/a
* "harry" <harry@nospam> scripsit:
I would like to find command like:

RepeatThisCharacterXTimes(CharacterToRepeat, TimesToRepeat)

Dim MyString as String = RepeatThisCharacterXTimes("x", 5)
MyString is now 'xxxxx'


'StrDup' or an overloaded ctor of 'String'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #4

P: n/a

Thanks.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ob**************@TK2MSFTNGP09.phx.gbl...
* "harry" <harry@nospam> scripsit:
I would like to find command like:

RepeatThisCharacterXTimes(CharacterToRepeat, TimesToRepeat)

Dim MyString as String = RepeatThisCharacterXTimes("x", 5)
MyString is now 'xxxxx'


'StrDup' or an overloaded ctor of 'String'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.