Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB6 String() function

Posted on 2006-07-10
3
Medium Priority
?
484 Views
Last Modified: 2012-08-14
String(13,"*") returned 13 stars in VB6. How do you do this in .NET?
0
Comment
Question by:manno
3 Comments
 
LVL 6

Expert Comment

by:cubixSoftware
ID: 17071318
       Dim s As String = ""
        MsgBox(s.PadLeft(13, "*"c))
0
 
LVL 8

Accepted Solution

by:
plq earned 200 total points
ID: 17071343
I think these would be more efficient:

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

or

s = New String("*", 13)
0
 
LVL 2

Expert Comment

by:Bill_PSC
ID: 17072553
Dim s As New String("*"c, 13)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question