Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting a number
Message
From
11/03/1998 20:47:06
 
 
To
11/03/1998 20:36:58
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00084017
Message ID:
00084062
Views:
19
An easier approach is to use the Space function to request a string consisting of the specified number of spaces:

msgbox Space(20) & "Visual Basic Rules!"

Space is somewhat like a specialized version of String. String also gives you repeated occurrences of a character, but you can request any character you want, whether it is a blank, an asterisk, or anything else. For example, the following displays a string with 20 leading blanks:

msgbox String(20, " ") & "Visual Basic Rules!"
but this:
msgbox String(20, "*")& "Visual Basic Rules!"
displays the string as "********************Visual Basic Rules!"

I hope all what you need is in those replies.

Good luck
Previous
Reply
Map
View

Click here to load this message in the networking platform