Harbour Reference Guide

 

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 containg the <cString> fill character.

Description

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

A value of 0 for <nSize> will return a NULL string.
Examples
      ? Replicate('a',10)    // aaaaaaaaaa
      ? Replicate('b',100000)
Tests
      See Examples
Status

Ready

Compliance

This function is Ca-Clipper compliant in all aspects, with the exception don't have the Clipper 64Kb string length.

Platforms

All

Files

Library is rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30