Solved

VB6 String() function

Posted on 2006-07-10
3
469 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 50 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now