Space

Description

Builds a string of the specified length whose value consists of spaces.

Syntax

Space ( n )

Argument

Description

n

A long whose value is the length of the string you want filled with spaces. The maximum value is 2,147,483,647, which is the maximum size for strings.

Returns

String. Returns a string filled with n spaces if it succeeds and the empty string ("") if an error occurs. If n is null, Space returns null.

Examples

Example 1

This statement puts a string whose value is four spaces in Name:

string Name

Name = Space(4)

Example 2

This statement assigns 40 spaces to the string Name:

string Name

Name = Space(40)

See also