DataBasic Reference > Statements and Intrinsic Functions > S > SPACE Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

SPACE Function (DataBasic) (m618703+space_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

SPACE Function

Generates a string containing a specified number of blank spaces.

Syntax

SPACE(count)

Syntax Elements

count The number of blank spaces.

Examples

PRINT SPACE(10):"HELLO"

Prints 10 spaces followed by the word HELLO.

DIM M(10)
MAT M = SPACE(20)

Assigns a string consisting of 20 blanks to each of 10 elements of array M.

S = SPACE(7)
L = "SMITH"
C = ","
F = "JOHN"
N = L:S:C:S:F

Assigns the following string to variable N:

"SMITH       ,       JOHN"

RealityV15.0Comment on this topic