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

  • Thread starter Thread starter harry
  • Start date Start date
H

harry

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
 
Dim a As New String("X", 10)


--

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

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


One Handed Man ( OHM - Terry Burns ) said:
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 said:
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'.
 
Back
Top