Method: Space for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Space for VBS
Method: Space for VBS
Generates a text with one or more spaces.
vSpace = Object.Space(number)
Object | VBS Object with this method. You do not need to specify this object. |
number | Variant Specifies the number of spaces. |
vSpace | Variant Receives a text without spaces. |
The following example inserts five spaces into a text:
Dim MyString MyString = "Hello" & Space(5) & "World" Call MsgBox(MyString) ' Returns "Hello World"