• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

VB 6.0 String format question

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
themroc
Asked:
themroc
1 Solution
 
drydenhoggCommented:
string(10,"b")

string(Number of Reptitions, Letter to repeat)

ADH.
0
 
themrocAuthor Commented:
exact the right thing, did not find the command in my manuals

thanks
themroc
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now