Solved

VB6 String() function

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

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

Suggested Solutions

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 …
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

829 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