Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$REPEAT^XLFSTR(): Repeat String

Reference Type: Supported, Category: String Functions, ICR#: 10104

Description

The $$REPEAT^XLFSTR extrinsic function returns a string that repeats the value of x for y number of times.

Format

  $$REPEAT^XLFSTR(x[,y])

Input Parameters

x:

(required) Character string to be repeated.

y:

(optional) Number of times to repeat the string in x.

Output

returns:

Returns the repeated string.

Examples

Example 1

>S X=$$REPEAT^XLFSTR("-",10)

>W X
----------

Example 2

>S X=$$REPEAT^XLFSTR("blue water ",5)

>W X
blue water blue water blue water blue water blue water