In the second case, string$ returns a string of NumExpr occurrences of the first character of the string StrExpr. NumExpr may be any numeric expression; StrExpr may be any string expression.
10 x$ = string$(12, 42) 20 print x$ "Basmark QuickBASIC" x$produces the output
************Basmark QuickBASIC************as does the program
10 x$ = "* - asterisk" 20 y$ = string$(12, x$) 30 print y$ "Basmark QuickBASIC" y$
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber