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

is there some *fill* function to fill a string with char c

P: n/a
Hi,

I'm looking for a function that could just create a string with given
character and they should be repeated n number of times. I remember this
function used to be there in vb 6 if i remember correctly. Anyway I know i
can make my own pretty easily but just wondering if its present in the
framework.

regards,

...ab

Sep 10 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
oh got it:

string temp = new string('c', 10);

"Abubakar" <em**********@yahoo.comwrote in message
news:eE**************@TK2MSFTNGP05.phx.gbl...
Hi,

I'm looking for a function that could just create a string with given
character and they should be repeated n number of times. I remember this
function used to be there in vb 6 if i remember correctly. Anyway I know i
can make my own pretty easily but just wondering if its present in the
framework.

regards,

..ab

Sep 10 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.