Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb.net equivalent to VB replicate() function

Status
Not open for further replies.

chriscboy

Programmer
Apr 23, 2002
150
GB
Hi,

Is there a vb.net method to replace the replicate() function that was in vb? I checked the string class and can't seem to find it. Do I need to write my own?

Thanks in advance.

Regards

Chris
 
Exactly what was the Replicate() function? I just checked, and there is no such function in my copy of VB 6. Do you mean the Replace() function?



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
Oops, sorry peeps, I got my languages mixed up! In VB it is called String(), its used to replicate a string x number of times

e.g. String(5,"*") would return "*****"

Hope that makes sense.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top