Wally,
Have a look at the Microsoft.VisualBasic.Strings.StrDup function, which
supports both String & Char.
Dim str As String
str = StrDup(5, "x"c)
str = StrDup(5, "xx")
Also String has a constructor that accepts a Char and a count.
str = New String("x"c, 5)
Note:
"x"c is a char literal (the small c says char)
"x" is a string literal.
Hope this helps
Jay
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.