STRING$
A function returning N concatenations of a string.
A$=STRING$(N,"hello")
B$=STRING$(10,"-*-")
C$=STRING$(Z%,S$)You can use this function to print repeated copies of a string. It is useful for printing headings or underlinings. The last example for PRINT uses the STRING$ function to print the column numbers across the page. For example,
PRINT STRING$(4,"-=*=-")would print
-=*=--=*=--=*=--=*=-and
PRINT STRING$(3,"0123456789")would print
012345678901234567890123456789Syntax
<s-var>=STRING$(<numeric>,<str>)Associated Keywords
None
Last updated on