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

Syntax:     POSREPL(<expC1>,<expC2>[,<expN>])

Arguments:  <expC1> is the string in which to replace characters.
            <expC2> contains the replacement string.
            <expN> denotes the character in <expC1> where
            replacement should start.

Returns:    A character string.
            The string including the replaced characters.

Usage:      POSREPL() can be used to replace a section of characters
            within <expC!> with another string <expC2>.  The new
            characters will then be exchanged in the <expC1> string,
            starting from the <expN> position.

Notes:      Without the <expN> argument, the end of the string <expC1>
            will be replaced with <expC2>.  Depending on the length of
            <expC1> (see example).

Library:    CT1.LIB


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

Examples:   * Three characters from position 3 onwards are
            * replaced by "XXX"
            ? POSREPL("ABCDEFG","XXX",3)                && "ABXXXFG"

            * Replace the last LEN() characters.
            ? POSREPL("ABCDEFG","XXX")                  && "ABCDXXX"



See Also: POSDEL() POSINS()

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