Rexx - copies String
This method copies a string n number of times.
Syntax
copies(string1,count)
Parameters
string1 − The source string.
count − The number of times to copy the string.
Return Value
Returns the string, copied count number of times.
Example
/* Main program */ a = "Hello" say copies(a,3)
When we run the above program, we will get the following result.
Output
HelloHelloHello
rexx_strings.htm
Advertisements