Space Function

Action

Returns the specified number of space characters.

Syntax

sSpaces = Space (iCount)
Variable Description
sSpaces The returned space characters. STRING.
iCount The number of spaces to return. INTEGER.

Notes

Space returns a string iCount spaces long. If iCount is zero, Space returns an empty string (""). Use Space to pad strings or buffers with either leading or trailing spaces. An exception is raised if iCount is less than zero.

Example

Print ("12345678901234567890")
Print ("12345" + Space (10) + "67890")
// Prints:
// 12345678901234567890
// 12345 67890