VB6 function STRING$(

  • Thread starter Thread starter Wally
  • Start date Start date
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
 
Back
Top