?
Solved

really easy question

Posted on 2004-11-04
7
Medium Priority
?
163 Views
Last Modified: 2010-05-02
i remember there being a function......but i cant remember the name of it which returns N iterations of a character to create a string

for example

UnknownFunction(5, "X")

would return

"XXXXX"

thanks,

~b
0
Comment
Question by:bramsquad
  • 4
  • 3
7 Comments
 
LVL 8

Author Comment

by:bramsquad
ID: 12498496
just for clarification:

im more worried about that it exists and the name of it (rather than having a function that can do this)......becuase i know i could write the function in a couple lines of code.

0
 
LVL 6

Expert Comment

by:bkthompson2112
ID: 12498544
msgbox string(5,"x")
0
 
LVL 6

Expert Comment

by:bkthompson2112
ID: 12498579
that's for VB6.  I'll check .NET
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 8

Author Comment

by:bramsquad
ID: 12498613
.NET is even better, but ill give you the pts if you dont find it
0
 
LVL 6

Accepted Solution

by:
bkthompson2112 earned 200 total points
ID: 12498772
VB.NET version

MsgBox(Strings.StrDup(5, "x"))
0
 
LVL 8

Author Comment

by:bramsquad
ID: 12499073
brilliant
0
 
LVL 6

Expert Comment

by:bkthompson2112
ID: 12499132
Glad I could help.

Thanks for the 'A' :)
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

864 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