Space Function


Returns the specified number of space characters.


sSpaces = Space (iCount)
Variable Description
sSpaces The returned space characters. STRING.
iCount The number of spaces to return. The number of spaces is limited by the range that the STRING data type supports. INTEGER.


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.


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