VB6 String() function

String(13,"*") returned 13 stars in VB6. How do you do this in .NET?
LVL 1
mannoAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
plqConnect With a Mentor Commented:
I think these would be more efficient:

Dim s as New String("*", 13)

or

s = New String("*", 13)
0
 
cubixSoftwareCommented:
       Dim s As String = ""
        MsgBox(s.PadLeft(13, "*"c))
0
 
Bill_PSCCommented:
Dim s As New String("*"c, 13)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.