str() function

The str() function repeats a str.exp the number of times specified in num.exp.

Syntax

str(str.exp, num.exp)

Parameter(s)

str.exp String to repeat.
num.exp Number of times to repeat the string.

Example(s)

Prints 79 asterisks at the current cursor (or print head) position.

print str("*",79)

Prints a string of =. The number of = that print is determined by system(2), which contains the current device output width most recently designated with a TCL term command.

print str("=",system(2))