Repstr, Tr, substr, Tr, str, substr – Visara Master Console Center Scripting Guide User Manual
Page 172
Advertising

Chapter 5 Script Commands
Scripting Guide
172
REPSTR
Syntax:
REPSTR( $String, %Count) ==> $RepeatedString
Description:
Returns a string repeated a specified number of times.
Action:
The String expression is repeated the number of times specified by
“Count”, and is returned as a one-character string.
Parameters:
$String. String expression. The character string to repeat.
%Count. Numeric expression. The number of times to repeat String.
Returns:
String value. The String repeated the number of times specified by
“Count”.
Notes:
N/A
Example:
$Str := REPSTR( “*”, 5)
//RESULT: “*****”
$Str := REPSTR( “Hi”, 3)
//RESULT: “HiHiHi”
$Str := REPSTR( “Hi ”, 3)
//RESULT: “Hi Hi Hi ”
See Also:
ATSTR, FINDSTR, LEFTSTR, RIGHTSTR, STR, SUBSTR
Advertising