NAME

string$ - return a string of specified characters

SYNOPSIS

v$ = string$(NumExpr1, NumExpr2)
v$ = string$(NumExpr, StrExpr)

DESCRIPTION

In the first case, string$ returns a string of NumExpr1 occurrences of the character whose ASCII code is NumExpr2.  NumExpr1 may be any numeric expression with a non-negative value.  NumExpr2 may be any numeric expressions whose values are in the range 0 to 255. 

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. 

EXAMPLE

The program
	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$

SEE ALSO

asc, space$

DIAGNOSTICS

If StrExpr is null, or if either NumExpr or NumExpr1 is less than 0, or if the value of NumExpr2 less than 0 or greater than 255, an "Illegal function call" error occurs. 

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber