473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
4 1207
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
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
* "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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
1
by: Ben Floyd | last post by:
It goes like this: Im converting a perl script that executes a command on each result of a directory listing. In perl, all is well. In Python, using approximately the same logic creates a...
3
by: Luke Z. Yang | last post by:
Hi(not sure I posted in the right place), While I tried to use dbx to debug a core file, it reported that dbx can't find some sort of .i file. Anyone knows what it is and how to get/generate? I...
5
by: Jurgen Haan | last post by:
can anyone give me any information about this message? SQL State: 51002 Native: -805 Message: SQL0805N Package "NULLID.SYSLH203 0X5359534C564C3031" was not found. SQLSTATE=51002 - Error...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
4
by: John Bradley | last post by:
I knew tackling VB.NET was going to be a huge ordeal. I've been wasting days trying to do one simple thing -- determining the "width" of a character in a RichTextBox. Sure, I can set the font in...
1
by: Li Weng | last post by:
Hi, If a .html filename has a "#", IE displays it ok when you double click it using Window explorer. In my application I define a datagrid; bind it to a datatable; define a column in Datagrid...
4
by: mistral | last post by:
Can anyone help to identify what this encryption used in this script? <html> <body> <script type="text/javascript" language="JavaScript"> function decrypt_p(x){ var l=x.length, b=1024,...
3
by: johnny | last post by:
I have python script does ftp download in a multi threaded way. Each thread downloads a file, close the file, calls the comman line to convert the .doc to pdf. Command line should go ahead and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.