# SPACE

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

# Description

The SPACE function generates a specific number of ASCII space characters. It takes the general form:

SPACE(expression)
1

Where:

expression should evaluate to a positive integer value.

The SPACE function will return the specified number of ASCII space characters and is useful for padding strings. It should not be used to position output on the terminal screen as this is inefficient, accomplish this by using the @ function.

An example of use is as:

TenSpaces = SPACE(10)
1

Go back to jBASE BASIC

Go back to Programmers' Reference Guide