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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only