STRING$ returns a string of a given length composed of similar characters.
A$ = STRING$(X,Y)
A$ = STRING$(X,Y$)
The first version will return the string A$ with X characters of ASCII code Y. The second version returns with a string of the first character of Y$.
100 PRINT"PAGE HEADING" 110 PRINT STRING$(12,"-")
PAGE HEADING ------------
The following statements are equivalent:
A$ = STRING$ (5,65) B$ = STRING$ (5,"A")
producing a string of five A ’s in A$ and B$ respectively.