QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The SPC function is used in PRINT and LPRINT statements to print or output a number of space characters.

Syntax

SPC(count%)

Parameter(s)

Usage

Example(s)

Using SPC to space a text print.


PRINT "123456789"
PRINT "abc" ; SPC(3) ; "123"


123456789
abc   123

See Also