Space - Built-in String Function¶
Purpose¶
The Space function returns a string that contains 1 to 256 space characters.
Syntax¶
Space(int)
Arguments¶
| Argument | Required | Description |
|---|---|---|
int |
Yes | Any valid integer expression. The number of spaces returned. |
Returns¶
String
Example¶
Return ("Hello" + Space(3) + "World") // returns "Hello World"
See Also¶
Notes¶
- When
intcannot be converted to the specified type, a runtime error is generated. - The value of
intneeds to be between 1 and 256. Above or below this range will result in runtime error -112.