space & strdup function
The Space function returns a string consisting of the specified number of spaces.
Dim myString1, myString2 As String
myString1 = Space(10)
myString2 = "Hello" & Space(10) & "World"
myString1 returns a string with 10 spaces.
myString2 will insert 10 spaces between two strings.
The StrDup function returns a string or object consisting of the specified character repeated the specified number of times.
Dim myString As String = "Wow! What a string!"
Dim myObject As New Object
Dim myString1, myString2, myString3 As String
myObject = "This is a String contained within an Object"
myString1 = StrDup(5, "P")
myString2 = StrDup(10, myString)
myString3 = CStr(StrDup(6, myObject))
myString1 returns PPPPP.
myString2 returns WWWWWWWWWW.
myString3 returns TTTTTT.