[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 491
  • Last Modified:

VB6 String() function

String(13,"*") returned 13 stars in VB6. How do you do this in .NET?
0
manno
Asked:
manno
1 Solution
 
cubixSoftwareCommented:
       Dim s As String = ""
        MsgBox(s.PadLeft(13, "*"c))
0
 
plqCommented:
I think these would be more efficient:

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

or

s = New String("*", 13)
0
 
Bill_PSCCommented:
Dim s As New String("*"c, 13)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now