Solved

VB6 String() function

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studios 1 89
VB.Net - Not Sure if Multi-threading is What I Need 4 41
Generate Unique ID in VB.NET 21 104
How do I copy a form and rename it in VS2015 2 21
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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