DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: Space for VBS

Method: Space for VBS

Generates a text with one or more spaces.

vSpace = Object.Space(number)
ObjectVBS
Object with this method. You do not need to specify this object.
numberVariant
Specifies the number of spaces.
vSpaceVariant
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"

See Also

Objects Overview

Related Topics

Filter | InStr | InStrB | InStrRev | Join | LCase | Left | LeftB | Len | LenB | LTrim | Mid | MidB | Replace | Right | RightB | RTrim | Space | Split | StrComp | String | StrReverse | Trim | UCase

In This Section
Was this information helpful?