?
Solved

VB 6.0  String format question

Posted on 2003-02-25
2
Medium Priority
?
142 Views
Last Modified: 2010-05-01
I would like to create a textstring as follows

dim textstring as String


This "textstring" shall comprise 10 times the letter b.
Instead of writing

textstring = "bbbbbbbbbb" I would like to express it as follows

textstring = 10 * "b"  

but it comes up with an errormessage "Type missmached"

how do I have to programme 10 * "letter"
0
Comment
Question by:themroc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
drydenhogg earned 200 total points
ID: 8015535
string(10,"b")

string(Number of Reptitions, Letter to repeat)

ADH.
0
 

Author Comment

by:themroc
ID: 8015634
exact the right thing, did not find the command in my manuals

thanks
themroc
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 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