Str function

Returns a string containing the expression repeated the specified number of times.

Str(expression, count)

The Str function has the following parameters.

ParameterDescription
expressionSpecifies the string value that is to be repeated. The expression must be a variable name or character string value.
countMust be a positive integer or must evaluate to a positive integer. It specifies the number of times to repeat expression. In the following example, the variable identifier X is assigned the string value containing 10 asterisk characters:

X = Str("*",10)



Note: The count parameter has an upper limit of 256MB. Any integer equal to or greater than 256MB will cause the system to abend.

The string function has an upper limit of 256 MB. An

* The variable identifier X is given the value of 60 underlines.
X = Str("_", 60)
E = "XX"
* G is assigned the string value of XXXXXXXXXX.
G = Str(E, 5)
 
**
**
  • guides/programming/programmers_reference_manual/str.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1