Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

String Function for .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay Feldman - 23 Oct 2004 17:35 GMT
In vb6, the String(Number, Character) function would let you generate a
string filled with a certain character.

How can I do this in .NET, since there is no String function and I had
trouble finding this in help?

Thanks a lot!

Signature

Jay Feldman
JayFeldman@NOSPAMmonmouth.com

Shiva - 23 Oct 2004 17:46 GMT
One of the String constructor overloads supports this. So, New String ('A',
10) will get you a string with A repeated 10 times.

HTH

In vb6, the String(Number, Character) function would let you generate a
string filled with a certain character.

How can I do this in .NET, since there is no String function and I had
trouble finding this in help?

Thanks a lot!

Signature

Jay Feldman
JayFeldman@NOSPAMmonmouth.com

Jay Feldman - 23 Oct 2004 19:29 GMT
Thanks a lot

> One of the String constructor overloads supports this. So, New String ('A',
> 10) will get you a string with A repeated 10 times.
[quoted text clipped - 8 lines]
>
> Thanks a lot!
Herfried K. Wagner [MVP] - 23 Oct 2004 19:55 GMT
"Shiva" <shiva_sm@online.excite.com> schrieb:
> One of the String constructor overloads supports this. So, New String ('A',
> 10) will get you a string with A repeated 10 times.

Alternatively you can use 'Microsoft.VisualBasic.Strings.StrDup'.

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.