Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2004, 02:42 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default vb.net have function to fill a string with a chara

for example, I want to get a string "0000000", the lenth is indeterminacy

how to get it?

------------------------
I am Chinese with poor english, when you don't understand my problem, please tell me. Thanks.
 
Old April 14th, 2004, 05:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

One of the forms of the String class's constructor is:
Code:
    Public Sub New( _
        ByVal c As Char, _
        ByVal count As Integer)
which will initialize a string to a specified character repeated a specified number of times.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net 2005 function wymiller .NET Framework 2.0 2 August 12th, 2007 12:23 PM
Use function Solver of Excel in VB.NET 2003 pliroforikarios VB.NET 2002/2003 Basics 0 November 27th, 2005 03:37 PM
Error trying to call Oracle function in VB.NET lou_1 Pro VB.NET 2002/2003 0 January 13th, 2004 06:42 PM
XML to String in VB.NET dimondwoof XML 1 June 24th, 2003 10:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.