Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The 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: SPACE() PADC() PADL() PADR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson