Replicate()

REPLICATE()

Repeats a single character expression

Syntax

      REPLICATE( <cString>, <nSize> )  --> cReplicateString

Arguments

<cString> Character string to be replicated

<nSize> Number of times to replicate <cString>

Returns

<cReplicateString> A character expression contain the <cString> fill character.

Description

This function returns a string composed of <nSize> repetitions of <cString>. The length of the character string returned by this function is limited to the memory available.

A value of 0 for <nSize> will return a NULL string.

Examples

      ? REPLICATE( "a", 10 )      // aaaaaaaaaa
      ? REPLICATE( "b", 100000 )

Tests

      See Examples

Compliance

Clipper

Platforms

All (64K)

Files

Library is rtl

Seealso

SPACE(), PADC(), PADL(), PADR()

Advertisements

3 responses to “Replicate()

  1. Pingback: Harbour All Functions – R | Viva Clipper !

  2. Pingback: Harbour String Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s