QBasic 1.1: STRING$ Function

Syntax

STRING$(length%,{ascii-code% | stringexpression$})

Description / Parameter(s)

length% The length of the string.
ascii-code% The ASCII code of the repeating character.
stringexpression$ Any string expression. STRING$ fills the string with the first character in stringexpression$.

Example

PRINT STRING$(5, "-"); PRINT "Hello"; PRINT STRING$(5, "-")