STR (string, repeat)
Use the STR function to produce a specified number of repetitions of a particular character string.
string is an expression that evaluates to the string to be generated.
repeat is an expression that evaluates to the number of times string is to be repeated. If repeat does not evaluate to a value that can be truncated to a positive integer, an empty string is returned.
If string evaluates to the null value, null is returned. If repeat evaluates to the null value, the STR function fails and the program terminates with a run-time error message.
PRINT STR('A',10)
*
X=STR(5,2)
PRINT X
*
X="HA"
PRINT STR(X,7)
This is the program output:
AAAAAAAAAA
55
HAHAHAHAHAHAHA