VBScript Space Function

Definition and Usage

Space function can return a string composed of a specified number of spaces.

Syntax

Space(number)
Parameter Description
number Required. Number of spaces in the string.

Instance

Example 1

dim txt
txt=Space(10)
document.write(txt)

Output:

"          "