SPACE(), SPACES() |
![]() ![]() ![]() |
The SPACE() function returns a string consisting of a given number of spaces. The SPACES() function is similar to SPACE() but operates on successive elements of a dynamic array, returning a similarly structured dynamic array of results.
Format
SPACE(count)
where
The SPACE() function is a useful way to generate multiple spaces. It can aid readability of programs by removing the need for space filled strings and it can be used to provide variable numbers of spaces where required.
Example
PRINT SPACE(INDENT) : TEXT
This statement prints the contents of TEXT indented by the number of spaces specified by INDENT.
See also: |