Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>replicate()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
REPLICATE()


Syntax:     REPLICATE(<expC>, <expN>)

Purpose:    To repeat a character string a specified number of times.

Arguments:  <expC> is the character string to repeat.

            <expN> is the number of times to repeat <expC>.

Returns:    A character string.

            The maximum size of the string returned is 65,535 (64K)
            bytes.  Specifying a zero as the numeric argument returns a
            null string.

Usage:      REPLICATE() is useful anywhere you want to repeatedly
            display, print, or stuff the keyboard with one or more
            characters.

Library:    CLIPPER.LIB


----------------------------------- Example --------------------------------

   ? REPLICATE("*", 5)           && Result: *****
   ? REPLICATE("Hi ", 2)         && Result: Hi Hi
   ? REPLICATE(CHR(42), 5)       && Result: *****


See Also: SPACE()

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