rep(
rep(
ROOT
,
COUNT
)

The rep( function assembles a text item by repeating a smaller text item over and over again.

Parameters

This function has two parameters:

root – is the main character, word or phrase that you want to repeat over and over again. This must be a text item.

count – is the number of times you want the root to be repeated.

Description

The rep( function simply appends a text value to itself over and over again.

    rep("*",20) ☞ ********************
    rep("hello ",3) ☞ hello hello hello

The parameters are actually interchangeable, so you’ll get the same result if you reverse them.

    rep(20,"*") ☞ ********************
    rep(3,"hello ") ☞ hello hello hello

See Also

- + -- works differently depending on the type of operands used with it. If both operands are numeric, it does numerical addition. If either operand is text the + operator concatenates (joins together) the two operands.

History

Version | Status | Notes
10.0 | Updated | Carried over from Panorama 6.0, but allows the parameters to be reversed.